From 5d77a38c3120d26735b86f67d24bcec112455f22 Mon Sep 17 00:00:00 2001 From: Gilles Meyomesse Date: Tue, 2 Oct 2018 12:11:30 +0200 Subject: [PATCH] [MIG] server_environment_ir_config_parameter from 11 to 12 --- .../README.rst | 90 ++-- .../__manifest__.py | 3 +- .../models/ir_config_parameter.py | 1 - .../readme/CONFIGURE.rst | 17 + .../readme/CONTRIBUTORS.rst | 2 + .../readme/CREDITS.rst | 2 + .../readme/DESCRIPTION.rst | 1 + .../readme/ROADMAP.rst | 4 + .../readme/USAGE.rst | 2 + .../static/description/index.html | 457 ++++++++++++++++++ .../tests/test_server_environment_ircp.py | 1 - 11 files changed, 546 insertions(+), 34 deletions(-) create mode 100644 server_environment_ir_config_parameter/readme/CONFIGURE.rst create mode 100644 server_environment_ir_config_parameter/readme/CONTRIBUTORS.rst create mode 100644 server_environment_ir_config_parameter/readme/CREDITS.rst create mode 100644 server_environment_ir_config_parameter/readme/DESCRIPTION.rst create mode 100644 server_environment_ir_config_parameter/readme/ROADMAP.rst create mode 100644 server_environment_ir_config_parameter/readme/USAGE.rst create mode 100644 server_environment_ir_config_parameter/static/description/index.html diff --git a/server_environment_ir_config_parameter/README.rst b/server_environment_ir_config_parameter/README.rst index 5bfd6d6..ebea787 100644 --- a/server_environment_ir_config_parameter/README.rst +++ b/server_environment_ir_config_parameter/README.rst @@ -1,19 +1,36 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ====================================== Server Environment Ir Config Parameter ====================================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github + :target: https://github.com/OCA/server-tools/tree/12.0/server_environment_ir_config_parameter + :alt: OCA/server-tools +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-server_environment_ir_config_parameter + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/149/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + Override System Parameters from server environment file. -Before using this module, you must be familiar with the -server_environment module. -Installation -============ +**Table of contents** -There is no specific installation instruction for this module. +.. contents:: + :local: Configuration ============= @@ -36,50 +53,63 @@ For example you can use this module in combination with web_environment_ribbon: [ir.config_parameter] ribbon.name=DEV -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/10.0 +Usage +===== + +Before using this module, you must be familiar with the +server_environment module. Known issues / Roadmap ====================== -* When the user modifies System Parameters that are defined in the config - file, the changes are ignored. It would be nice to display which system - parameters come from the config file and possibly make their key and value - readonly in the user interface. +When the user modifies System Parameters that are defined in the config +file, the changes are ignored. It would be nice to display which system +parameters come from the config file and possibly make their key and value +readonly in the user interface. 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. +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 ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* ACSONE SA/NV Contributors ------------- +~~~~~~~~~~~~ -* Stéphane Bidoul +* Stéphane Bidoul (https://acsone.eu) +* Gilles Meyomesse (https://acsone.eu) -Maintainer ----------- +Other credits +~~~~~~~~~~~~~ + +This module is maintained by: +* Odoo Community Association + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/server-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/server_environment_ir_config_parameter/__manifest__.py b/server_environment_ir_config_parameter/__manifest__.py index a48e34a..65c790e 100644 --- a/server_environment_ir_config_parameter/__manifest__.py +++ b/server_environment_ir_config_parameter/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -6,7 +5,7 @@ 'name': 'Server Environment Ir Config Parameter', 'summary': """ Override System Parameters from server environment file""", - 'version': '10.0.1.0.1', + 'version': '12.0.1.0.0', 'license': 'AGPL-3', 'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', 'website': 'https://odoo-community.org/', diff --git a/server_environment_ir_config_parameter/models/ir_config_parameter.py b/server_environment_ir_config_parameter/models/ir_config_parameter.py index 4017fdd..c0f18e2 100644 --- a/server_environment_ir_config_parameter/models/ir_config_parameter.py +++ b/server_environment_ir_config_parameter/models/ir_config_parameter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/server_environment_ir_config_parameter/readme/CONFIGURE.rst b/server_environment_ir_config_parameter/readme/CONFIGURE.rst new file mode 100644 index 0000000..ce786cb --- /dev/null +++ b/server_environment_ir_config_parameter/readme/CONFIGURE.rst @@ -0,0 +1,17 @@ +To configure this module, you need to add a section ``[ir.config_parameter]`` to +you server_environment_files configurations, where the keys are the same +as would normally be set in the Systems Parameter Odoo menu. + +When first using a value, the system will read it from the configuration file +and override any value that would be present in the database, so the configuration +file has precedence. + +When creating or modifying values that are in the configuration file, the +module replace changes, enforcing the configuration value. + +For example you can use this module in combination with web_environment_ribbon: + +.. code:: + + [ir.config_parameter] + ribbon.name=DEV \ No newline at end of file diff --git a/server_environment_ir_config_parameter/readme/CONTRIBUTORS.rst b/server_environment_ir_config_parameter/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..0ac3128 --- /dev/null +++ b/server_environment_ir_config_parameter/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Stéphane Bidoul (https://acsone.eu) +* Gilles Meyomesse (https://acsone.eu) \ No newline at end of file diff --git a/server_environment_ir_config_parameter/readme/CREDITS.rst b/server_environment_ir_config_parameter/readme/CREDITS.rst new file mode 100644 index 0000000..e8134ce --- /dev/null +++ b/server_environment_ir_config_parameter/readme/CREDITS.rst @@ -0,0 +1,2 @@ +This module is maintained by: +* Odoo Community Association \ No newline at end of file diff --git a/server_environment_ir_config_parameter/readme/DESCRIPTION.rst b/server_environment_ir_config_parameter/readme/DESCRIPTION.rst new file mode 100644 index 0000000..141459e --- /dev/null +++ b/server_environment_ir_config_parameter/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Override System Parameters from server environment file. \ No newline at end of file diff --git a/server_environment_ir_config_parameter/readme/ROADMAP.rst b/server_environment_ir_config_parameter/readme/ROADMAP.rst new file mode 100644 index 0000000..42a26d8 --- /dev/null +++ b/server_environment_ir_config_parameter/readme/ROADMAP.rst @@ -0,0 +1,4 @@ +When the user modifies System Parameters that are defined in the config +file, the changes are ignored. It would be nice to display which system +parameters come from the config file and possibly make their key and value +readonly in the user interface. \ No newline at end of file diff --git a/server_environment_ir_config_parameter/readme/USAGE.rst b/server_environment_ir_config_parameter/readme/USAGE.rst new file mode 100644 index 0000000..300775c --- /dev/null +++ b/server_environment_ir_config_parameter/readme/USAGE.rst @@ -0,0 +1,2 @@ +Before using this module, you must be familiar with the +server_environment module. \ No newline at end of file diff --git a/server_environment_ir_config_parameter/static/description/index.html b/server_environment_ir_config_parameter/static/description/index.html new file mode 100644 index 0000000..8842fdd --- /dev/null +++ b/server_environment_ir_config_parameter/static/description/index.html @@ -0,0 +1,457 @@ + + + + + + +Server Environment Ir Config Parameter + + + +
+

Server Environment Ir Config Parameter

+ + +

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

+

Override System Parameters from server environment file.

+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to add a section [ir.config_parameter] to +you server_environment_files configurations, where the keys are the same +as would normally be set in the Systems Parameter Odoo menu.

+

When first using a value, the system will read it from the configuration file +and override any value that would be present in the database, so the configuration +file has precedence.

+

When creating or modifying values that are in the configuration file, the +module replace changes, enforcing the configuration value.

+

For example you can use this module in combination with web_environment_ribbon:

+
+[ir.config_parameter]
+ribbon.name=DEV
+
+
+
+

Usage

+

Before using this module, you must be familiar with the +server_environment module.

+
+
+

Known issues / Roadmap

+

When the user modifies System Parameters that are defined in the config +file, the changes are ignored. It would be nice to display which system +parameters come from the config file and possibly make their key and value +readonly in the user interface.

+
+
+

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

+
    +
  • ACSONE SA/NV
  • +
+
+ +
+

Other credits

+

This module is maintained by: +* Odoo Community Association

+
+
+

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-tools project on GitHub.

+

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

+
+
+
+ + diff --git a/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py b/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py index bcffa9c..31fd4d7 100644 --- a/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py +++ b/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).