diff --git a/README.md b/README.md index 16daf6d..05fd1eb 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,12 @@ ![LastCommit](https://img.shields.io/github/last-commit/sustainability-suite/sustainability-odoo?color=green) [![Sustainability CI](https://github.com/sustainability-suite/sustainability-odoo/actions/workflows/ci.yaml/badge.svg)](https://github.com/sustainability-suite/sustainability-odoo/actions/workflows/ci.yaml) - # Sustainability Odoo v17 ## License This repository is licensed under [AGPL-3.0](LICENSE). Each module might be subject to a different license : see module manifest. - [//]: # (addons) @@ -28,6 +26,7 @@ addon | version | maintainers | summary [sustainability_hr_expense_report](sustainability_hr_expense_report/) | 17.0.1.0.0 | [![bonnetadam](https://github.com/bonnetadam.png?size=30px)](https://github.com/bonnetadam) | Provide CO2 accounting data for expense reports [sustainability_mis_builder](sustainability_mis_builder/) | 17.0.1.0.0 | [![jguenat](https://github.com/jguenat.png?size=30px)](https://github.com/jguenat) | Provide CO2e accounting lines data for MIS builder reports [sustainability_point_of_sale](sustainability_point_of_sale/) | 17.0.1.0.0 | [![jacopobacci](https://github.com/jacopobacci.png?size=30px)](https://github.com/jacopobacci) | Sustainability Point of Sale +[sustainability_product_label_print](sustainability_product_label_print/) | 17.0.1.0.0 | [![jacopobacci](https://github.com/jacopobacci.png?size=30px)](https://github.com/jacopobacci) | Sustainability Product Label Print [sustainability_purchase](sustainability_purchase/) | 17.0.1.0.0 | [![jguenat](https://github.com/jguenat.png?size=30px)](https://github.com/jguenat) [![bonnetadam](https://github.com/bonnetadam.png?size=30px)](https://github.com/bonnetadam) [![jacopobacci](https://github.com/jacopobacci.png?size=30px)](https://github.com/jacopobacci) | Glue module for sustainability & purchase modules [sustainability_website_sale](sustainability_website_sale/) | 17.0.1.0.0 | [![jacopobacci](https://github.com/jacopobacci.png?size=30px)](https://github.com/jacopobacci) | Sustainability eCommerce diff --git a/sustainability/models/res_config_settings.py b/sustainability/models/res_config_settings.py index 7c86be0..7c67d3a 100644 --- a/sustainability/models/res_config_settings.py +++ b/sustainability/models/res_config_settings.py @@ -41,6 +41,7 @@ class ResConfigSettings(models.TransientModel): module_sustainability_hr_expense_report = fields.Boolean() module_sustainability_website_sale = fields.Boolean() module_sustainability_point_of_sale = fields.Boolean() + module_sustainability_product_label_print = fields.Boolean() @api.depends("company_id") def _compute_available_modules(self): diff --git a/sustainability/views/res_config_settings.xml b/sustainability/views/res_config_settings.xml index ec87a96..47915ae 100644 --- a/sustainability/views/res_config_settings.xml +++ b/sustainability/views/res_config_settings.xml @@ -88,6 +88,9 @@ > + + +

Use Sutainability module with more applications !

diff --git a/sustainability_product_label_print/README.rst b/sustainability_product_label_print/README.rst new file mode 100644 index 0000000..98270b3 --- /dev/null +++ b/sustainability_product_label_print/README.rst @@ -0,0 +1,68 @@ +================================== +Sustainability Product Label Print +================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:754180c8666c0d873b197614d943e56ad813c33c43db337eba5853989dda27cf + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-sustainability--suite%2Fsustainability--odoo-lightgray.png?logo=github + :target: https://github.com/sustainability-suite/sustainability-odoo/tree/17.0/sustainability_product_label_print + :alt: sustainability-suite/sustainability-odoo + +|badge1| |badge2| |badge3| + +This module can be activated from Sustainability settings to add CO2e infos on printed product labels. + +**Table of contents** + +.. contents:: + :local: + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Open Net Sàrl + +Contributors +~~~~~~~~~~~~ + +* Jacopo Bacci + +Maintainers +~~~~~~~~~~~ + +.. |maintainer-jacopobacci| image:: https://github.com/jacopobacci.png?size=40px + :target: https://github.com/jacopobacci + :alt: jacopobacci + +Current maintainer: + +|maintainer-jacopobacci| + +This module is part of the `sustainability-suite/sustainability-odoo `_ project on GitHub. + +You are welcome to contribute. diff --git a/sustainability_product_label_print/__manifest__.py b/sustainability_product_label_print/__manifest__.py new file mode 100644 index 0000000..852f271 --- /dev/null +++ b/sustainability_product_label_print/__manifest__.py @@ -0,0 +1,18 @@ +{ + "name": "Sustainability Product Label Print", + "category": "Sales/Sales", + "version": "17.0.1.0.0", + "installable": True, + "application": False, + "auto_install": False, + "license": "LGPL-3", + "author": "Open Net Sàrl", + "maintainers": ["jacopobacci"], + "development_status": "Production/Stable", + "website": "https://www.open-net.ch", + "depends": ["sustainability"], + "data": [ + "report/product_product_templates.xml", + ], + "sequence": 1, +} diff --git a/sustainability_product_label_print/readme/CONTRIBUTORS.rst b/sustainability_product_label_print/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..382adb3 --- /dev/null +++ b/sustainability_product_label_print/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Jacopo Bacci diff --git a/sustainability_product_label_print/readme/DESCRIPTION.rst b/sustainability_product_label_print/readme/DESCRIPTION.rst new file mode 100644 index 0000000..4382add --- /dev/null +++ b/sustainability_product_label_print/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module can be activated from Sustainability settings to add CO2e infos on printed product labels. diff --git a/sustainability_product_label_print/report/product_product_templates.xml b/sustainability_product_label_print/report/product_product_templates.xml new file mode 100644 index 0000000..983bc1b --- /dev/null +++ b/sustainability_product_label_print/report/product_product_templates.xml @@ -0,0 +1,39 @@ + + + + + + + + + + +