diff --git a/server_environment_files_sample/README.rst b/server_environment_files_sample/README.rst new file mode 100644 index 0000000..cc97bfb --- /dev/null +++ b/server_environment_files_sample/README.rst @@ -0,0 +1,82 @@ +================================================================ +Example server configuration environment files repository module +================================================================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github + :target: https://github.com/OCA/server-env/tree/12.0/server_environment_files_sample + :alt: OCA/server-env +.. |badge3| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-env-12-0/server-env-12-0-server_environment_files_sample + :alt: Translate me on Weblate +.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/254/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| + +This is an example module to be used for +`server_environment_files`. Check that module's README for more +information. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +Do not install this module as is. Copy it to a directory in your +addons-path and rename it to +`server_environment_files`, then edit the various configurations. + +This module is not testable on runbot (see above). + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Florent Xicluna (Wingo) +* Nicolas Bessi + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/server-env `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/server_environment_files_sample/__init__.py b/server_environment_files_sample/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/server_environment_files_sample/__manifest__.py b/server_environment_files_sample/__manifest__.py new file mode 100644 index 0000000..788c6eb --- /dev/null +++ b/server_environment_files_sample/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright Wingo SA +# Copyright 2018 Camptocamp (https://www.camptocamp.com). +# License GPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Example server configuration environment files repository module", + "version": "15.0.1.0.0", + "depends": ["base"], + "author": "Camptocamp,Odoo Community Association (OCA)", + "summary": "sample config file for server_environment", + "website": "https://github.com/OCA/server-env", + "license": "GPL-3 or any later version", + "category": "Tools", + "data": [], +} diff --git a/server_environment_files_sample/default/base.conf b/server_environment_files_sample/default/base.conf new file mode 100644 index 0000000..badaf8c --- /dev/null +++ b/server_environment_files_sample/default/base.conf @@ -0,0 +1,9 @@ +[misc] +completed_state = 13 +smtp_server = xxx.xxx.ch + +[custom_ged] +ged_folder = /my_mounting_point/ged/ + +[wkhtml2pdf] +lib_path = /xxx/xxx/lib/wkhtmltopdf-linux-i386-0-9-9 diff --git a/server_environment_files_sample/default/mytopic.conf b/server_environment_files_sample/default/mytopic.conf new file mode 100644 index 0000000..b295334 --- /dev/null +++ b/server_environment_files_sample/default/mytopic.conf @@ -0,0 +1,14 @@ +[external_service] +CONSTA = D01 +CONSTB = 1 +CONSTC = -23 + + +[external_service.ftp] +server = 127.0.0.1 +in_path = /in/ +out_path= /out/ +user = toto +password = my_dev_password +tls = 0 +port = 8074 diff --git a/server_environment_files_sample/i18n/server_environment_files.pot b/server_environment_files_sample/i18n/server_environment_files.pot new file mode 100644 index 0000000..d2e396f --- /dev/null +++ b/server_environment_files_sample/i18n/server_environment_files.pot @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + diff --git a/server_environment_files_sample/i18n/server_environment_files_sample.pot b/server_environment_files_sample/i18n/server_environment_files_sample.pot new file mode 100644 index 0000000..d2e396f --- /dev/null +++ b/server_environment_files_sample/i18n/server_environment_files_sample.pot @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + diff --git a/server_environment_files_sample/preprod/mytopic.conf b/server_environment_files_sample/preprod/mytopic.conf new file mode 100644 index 0000000..94a0c21 --- /dev/null +++ b/server_environment_files_sample/preprod/mytopic.conf @@ -0,0 +1,7 @@ +[external_service] +CONSTC = -25 + + +[external_service.ftp] +user = toto +password = preprod_toto diff --git a/server_environment_files_sample/prod/base.conf b/server_environment_files_sample/prod/base.conf new file mode 100644 index 0000000..0ee236e --- /dev/null +++ b/server_environment_files_sample/prod/base.conf @@ -0,0 +1,8 @@ +[misc] +smtp_server = prod.xxx.xxx.ch + +[custom_ged] +ged_folder = /my_mounting_point/ged/ + +[wkhtml2pdf] +lib_path = /xxx/xxx/lib/wkhtmltopdf-linux-i386-0-9-9 diff --git a/server_environment_files_sample/prod/mytopic.conf b/server_environment_files_sample/prod/mytopic.conf new file mode 100644 index 0000000..2c224ae --- /dev/null +++ b/server_environment_files_sample/prod/mytopic.conf @@ -0,0 +1,14 @@ +[external_service] +CONSTA = D01 +CONSTB = 1 +CONSTC = -23 + + +[external_service.ftp] +server = my_prod_server +in_path = /in/ +out_path= /out/ +user = prod_user +password = my_prod_password +tls = 0 +port = 21 diff --git a/server_environment_files_sample/readme/CONTRIBUTORS.rst b/server_environment_files_sample/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..838bdbd --- /dev/null +++ b/server_environment_files_sample/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Florent Xicluna (Wingo) +* Nicolas Bessi diff --git a/server_environment_files_sample/readme/DESCRIPTION.rst b/server_environment_files_sample/readme/DESCRIPTION.rst new file mode 100644 index 0000000..6e0ccef --- /dev/null +++ b/server_environment_files_sample/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This is an example module to be used for +`server_environment_files`. Check that module's README for more +information. diff --git a/server_environment_files_sample/readme/INSTALL.rst b/server_environment_files_sample/readme/INSTALL.rst new file mode 100644 index 0000000..04ed532 --- /dev/null +++ b/server_environment_files_sample/readme/INSTALL.rst @@ -0,0 +1,5 @@ +Do not install this module as is. Copy it to a directory in your +addons-path and rename it to +`server_environment_files`, then edit the various configurations. + +This module is not testable on runbot (see above). diff --git a/server_environment_files_sample/static/description/icon.png b/server_environment_files_sample/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/server_environment_files_sample/static/description/icon.png differ diff --git a/server_environment_files_sample/static/description/index.html b/server_environment_files_sample/static/description/index.html new file mode 100644 index 0000000..8cbf1a3 --- /dev/null +++ b/server_environment_files_sample/static/description/index.html @@ -0,0 +1,430 @@ + + + + + + +Example server configuration environment files repository module + + + +
+

Example server configuration environment files repository module

+ + +

Beta OCA/server-env Translate me on Weblate Try me on Runbot

+

This is an example module to be used for +server_environment_files. Check that module’s README for more +information.

+

Table of contents

+ +
+

Installation

+

Do not install this module as is. Copy it to a directory in your +addons-path and rename it to +server_environment_files, then edit the various configurations.

+

This module is not testable on runbot (see above).

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/server-env project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/server_environment_files_sample/test/base.conf b/server_environment_files_sample/test/base.conf new file mode 100644 index 0000000..036aea7 --- /dev/null +++ b/server_environment_files_sample/test/base.conf @@ -0,0 +1,12 @@ +[misc] +smtp_server = dev.xxx.xxx.ch + +[custom_ged] +ged_folder = /tmp/ged/ + +[wkhtml2pdf] +lib_path = /myHome/lib/wkhtmltopdf-linux-i386-0-9-9 + +[ir.config_parameter] +ircp_from_config=config_value +ircp_empty= diff --git a/server_environment_files_sample/test/mytopic.conf b/server_environment_files_sample/test/mytopic.conf new file mode 100644 index 0000000..d2f1f6f --- /dev/null +++ b/server_environment_files_sample/test/mytopic.conf @@ -0,0 +1,7 @@ +[external_service] +CONSTC = -25 + + +[external_service.ftp] +user = toto +password = toto diff --git a/server_environment_files_sample/test/pos_environment.conf b/server_environment_files_sample/test/pos_environment.conf new file mode 100644 index 0000000..8df3fbd --- /dev/null +++ b/server_environment_files_sample/test/pos_environment.conf @@ -0,0 +1,14 @@ +[pos_environment_header] +line_1 = =============================== +line_2 = BILL PRINTED ON +line_3 = DEV ENVIRONMNENT +line_4 = =============================== + +[pos_environment_footer] +line_1 = =============================== +line_2 = BILL PRINTED ON +line_3 = DEV ENVIRONMNENT +line_4 = =============================== +line_5 = THIS BILL DOESN't CONSTITUTE +line_6 = PROOF OF PURCHASE +line_7 = =============================== diff --git a/setup/server_environment_files_sample/odoo/addons/server_environment_files_sample b/setup/server_environment_files_sample/odoo/addons/server_environment_files_sample new file mode 120000 index 0000000..30af6f6 --- /dev/null +++ b/setup/server_environment_files_sample/odoo/addons/server_environment_files_sample @@ -0,0 +1 @@ +../../../../server_environment_files_sample \ No newline at end of file diff --git a/setup/server_environment_files_sample/setup.py b/setup/server_environment_files_sample/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/server_environment_files_sample/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)