diff --git a/web_environment_ribbon/README.rst b/web_environment_ribbon/README.rst index 9d86098f1..47b36e415 100644 --- a/web_environment_ribbon/README.rst +++ b/web_environment_ribbon/README.rst @@ -17,18 +17,19 @@ Web Environment Ribbon :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github - :target: https://github.com/OCA/web/tree/16.0/web_environment_ribbon + :target: https://github.com/OCA/web/tree/17.0/web_environment_ribbon :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_environment_ribbon + :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_environment_ribbon :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -Mark a Test Environment with a red ribbon on the top left corner in every page +Mark a Test Environment with a red ribbon on the top left corner in +every page **Table of contents** @@ -38,20 +39,21 @@ Mark a Test Environment with a red ribbon on the top left corner in every page Configuration ============= -* You can change the ribbon's name ("TEST") by editing the default system - parameter "ribbon.name" (in the menu Settings > Parameters > System - Parameters) To hide the ribbon, set this parameter to "False" or delete it. -* You can customize the ribbon color and background color through system - parameters: "ribbon.color", "ribbon.background.color". Fill with valid CSS - colors or just set to "False" to use default values. -* You can add the database name in the ribbon by adding "{db_name}" in the - system parameter "ribbon.name". +- You can change the ribbon's name ("TEST") by editing the default + system parameter "ribbon.name" (in the menu Settings > Parameters > + System Parameters) To hide the ribbon, set this parameter to "False" + or delete it. +- You can customize the ribbon color and background color through + system parameters: "ribbon.color", "ribbon.background.color". Fill + with valid CSS colors or just set to "False" to use default values. +- You can add the database name in the ribbon by adding "{db_name}" in + the system parameter "ribbon.name". Usage ===== -To use this module, you need only to install it. After installation, a red -ribbon will be visible on top left corner of every Odoo backend page +To use this module, you need only to install it. After installation, a +red ribbon will be visible on top left corner of every Odoo backend page Bug Tracker =========== @@ -59,7 +61,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -67,24 +69,24 @@ Credits ======= Authors -~~~~~~~ +------- * Francesco OpenCode Apruzzese * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* Francesco Apruzzese -* Javi Melendez -* Antonio Espinosa -* Thomas Binsfeld -* Xavier Jiménez -* Dennis Sluijk -* Eric Lembregts +- Francesco Apruzzese +- Javi Melendez +- Antonio Espinosa +- Thomas Binsfeld +- Xavier Jiménez +- Dennis Sluijk +- Eric Lembregts Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -96,6 +98,6 @@ 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/web `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_environment_ribbon/models/web_environment_ribbon_backend.py b/web_environment_ribbon/models/web_environment_ribbon_backend.py index 5932d7b32..2174355ce 100644 --- a/web_environment_ribbon/models/web_environment_ribbon_backend.py +++ b/web_environment_ribbon/models/web_environment_ribbon_backend.py @@ -5,7 +5,6 @@ from odoo import api, models class WebEnvironmentRibbonBackend(models.AbstractModel): - _name = "web.environment.ribbon.backend" _description = "Web Environment Ribbon Backend" diff --git a/web_environment_ribbon/pyproject.toml b/web_environment_ribbon/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_environment_ribbon/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_environment_ribbon/readme/CONFIGURE.md b/web_environment_ribbon/readme/CONFIGURE.md new file mode 100644 index 000000000..ba53bdbd7 --- /dev/null +++ b/web_environment_ribbon/readme/CONFIGURE.md @@ -0,0 +1,9 @@ +- You can change the ribbon's name ("TEST") by editing the default + system parameter "ribbon.name" (in the menu Settings \> Parameters \> + System Parameters) To hide the ribbon, set this parameter to "False" + or delete it. +- You can customize the ribbon color and background color through system + parameters: "ribbon.color", "ribbon.background.color". Fill with valid + CSS colors or just set to "False" to use default values. +- You can add the database name in the ribbon by adding "{db_name}" in + the system parameter "ribbon.name". diff --git a/web_environment_ribbon/readme/CONFIGURE.rst b/web_environment_ribbon/readme/CONFIGURE.rst deleted file mode 100644 index 8542c72e4..000000000 --- a/web_environment_ribbon/readme/CONFIGURE.rst +++ /dev/null @@ -1,8 +0,0 @@ -* You can change the ribbon's name ("TEST") by editing the default system - parameter "ribbon.name" (in the menu Settings > Parameters > System - Parameters) To hide the ribbon, set this parameter to "False" or delete it. -* You can customize the ribbon color and background color through system - parameters: "ribbon.color", "ribbon.background.color". Fill with valid CSS - colors or just set to "False" to use default values. -* You can add the database name in the ribbon by adding "{db_name}" in the - system parameter "ribbon.name". diff --git a/web_environment_ribbon/readme/CONTRIBUTORS.md b/web_environment_ribbon/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..b850a7747 --- /dev/null +++ b/web_environment_ribbon/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- Francesco Apruzzese \<\> +- Javi Melendez \<\> +- Antonio Espinosa \<\> +- Thomas Binsfeld \<\> +- Xavier Jiménez \<\> +- Dennis Sluijk \<\> +- Eric Lembregts \<\> diff --git a/web_environment_ribbon/readme/CONTRIBUTORS.rst b/web_environment_ribbon/readme/CONTRIBUTORS.rst deleted file mode 100644 index 257e450dc..000000000 --- a/web_environment_ribbon/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,7 +0,0 @@ -* Francesco Apruzzese -* Javi Melendez -* Antonio Espinosa -* Thomas Binsfeld -* Xavier Jiménez -* Dennis Sluijk -* Eric Lembregts diff --git a/web_environment_ribbon/readme/DESCRIPTION.rst b/web_environment_ribbon/readme/DESCRIPTION.md similarity index 81% rename from web_environment_ribbon/readme/DESCRIPTION.rst rename to web_environment_ribbon/readme/DESCRIPTION.md index c52ab9b57..e9a7e1e7f 100644 --- a/web_environment_ribbon/readme/DESCRIPTION.rst +++ b/web_environment_ribbon/readme/DESCRIPTION.md @@ -1 +1,2 @@ -Mark a Test Environment with a red ribbon on the top left corner in every page +Mark a Test Environment with a red ribbon on the top left corner in +every page diff --git a/web_environment_ribbon/readme/USAGE.md b/web_environment_ribbon/readme/USAGE.md new file mode 100644 index 000000000..add072e96 --- /dev/null +++ b/web_environment_ribbon/readme/USAGE.md @@ -0,0 +1,2 @@ +To use this module, you need only to install it. After installation, a +red ribbon will be visible on top left corner of every Odoo backend page diff --git a/web_environment_ribbon/readme/USAGE.rst b/web_environment_ribbon/readme/USAGE.rst deleted file mode 100644 index 408d88cd2..000000000 --- a/web_environment_ribbon/readme/USAGE.rst +++ /dev/null @@ -1,2 +0,0 @@ -To use this module, you need only to install it. After installation, a red -ribbon will be visible on top left corner of every Odoo backend page diff --git a/web_environment_ribbon/static/description/index.html b/web_environment_ribbon/static/description/index.html index 66bc30bf9..69a1b1814 100644 --- a/web_environment_ribbon/static/description/index.html +++ b/web_environment_ribbon/static/description/index.html @@ -369,8 +369,9 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:f15d70ea4272155560e696d4677c06aac24b47b303f75ea305d9c4e5a3991476 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

-

Mark a Test Environment with a red ribbon on the top left corner in every page

+

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Mark a Test Environment with a red ribbon on the top left corner in +every page

Table of contents

    @@ -388,27 +389,28 @@ ul.auto-toc {

    Configuration

      -
    • You can change the ribbon’s name (“TEST”) by editing the default system -parameter “ribbon.name” (in the menu Settings > Parameters > System -Parameters) To hide the ribbon, set this parameter to “False” or delete it.
    • -
    • You can customize the ribbon color and background color through system -parameters: “ribbon.color”, “ribbon.background.color”. Fill with valid CSS -colors or just set to “False” to use default values.
    • -
    • You can add the database name in the ribbon by adding “{db_name}” in the -system parameter “ribbon.name”.
    • +
    • You can change the ribbon’s name (“TEST”) by editing the default +system parameter “ribbon.name” (in the menu Settings > Parameters > +System Parameters) To hide the ribbon, set this parameter to “False” +or delete it.
    • +
    • You can customize the ribbon color and background color through +system parameters: “ribbon.color”, “ribbon.background.color”. Fill +with valid CSS colors or just set to “False” to use default values.
    • +
    • You can add the database name in the ribbon by adding “{db_name}” in +the system parameter “ribbon.name”.

    Usage

    -

    To use this module, you need only to install it. After installation, a red -ribbon will be visible on top left corner of every Odoo backend page

    +

    To use this module, you need only to install it. After installation, a +red ribbon will be visible on top left corner of every Odoo backend page

    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 to smash it by providing a detailed and welcomed -feedback.

    +feedback.

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

    @@ -439,7 +441,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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

    +

    This module is part of the OCA/web project on GitHub.

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

diff --git a/web_environment_ribbon/tests/test_environment_ribbon_data.py b/web_environment_ribbon/tests/test_environment_ribbon_data.py index 577dbed00..a3e186e8f 100644 --- a/web_environment_ribbon/tests/test_environment_ribbon_data.py +++ b/web_environment_ribbon/tests/test_environment_ribbon_data.py @@ -18,7 +18,7 @@ class TestEnvironmentRibbonData(common.TransactionCase): ribbon = self.env["web.environment.ribbon.backend"].get_environment_ribbon() expected_ribbon = { - "name": "Test Ribbon {db_name}".format(db_name=self.env.cr.dbname), + "name": f"Test Ribbon {self.env.cr.dbname}", "color": "#000000", "background_color": "#FFFFFF", }