diff --git a/product_attribute_set_completeness/README.rst b/product_attribute_set_completeness/README.rst new file mode 100644 index 00000000..90c1664e --- /dev/null +++ b/product_attribute_set_completeness/README.rst @@ -0,0 +1,85 @@ +================================== +Product Attribute Set Completeness +================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fodoo--pim-lightgray.png?logo=github + :target: https://github.com/OCA/odoo-pim/tree/14.0/product_attribute_set_completeness + :alt: OCA/odoo-pim +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/odoo-pim-14-0/odoo-pim-14-0-product_attribute_set_completeness + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/295/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the completion rate and the completion state on the products. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Completion rate and completion state are visible on the product form. +These 2 properties are also searchable through the search view ("Complete" and "Not Complete" filters). + +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 + +Contributors +~~~~~~~~~~~~ + +* Cédric PIGEON +* Xavier Bouquiaux +* `Camptocamp `_ + + * Iván Todorovich + +* Dhara Solanki + +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/odoo-pim `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_attribute_set_completeness/__init__.py b/product_attribute_set_completeness/__init__.py new file mode 100644 index 00000000..1377f57f --- /dev/null +++ b/product_attribute_set_completeness/__init__.py @@ -0,0 +1 @@ +from . import components diff --git a/product_attribute_set_completeness/__manifest__.py b/product_attribute_set_completeness/__manifest__.py new file mode 100644 index 00000000..cb8b80d9 --- /dev/null +++ b/product_attribute_set_completeness/__manifest__.py @@ -0,0 +1,13 @@ +# Copyright 2020 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Product Attribute Set Completeness", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/odoo-pim", + "depends": ["product_attribute_set", "attribute_set_completeness"], + "data": ["views/product_template_view.xml"], + "auto_install": True, +} diff --git a/product_attribute_set_completeness/components/__init__.py b/product_attribute_set_completeness/components/__init__.py new file mode 100644 index 00000000..e961b842 --- /dev/null +++ b/product_attribute_set_completeness/components/__init__.py @@ -0,0 +1,3 @@ +# Copyright 2020 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from . import product_template_event_listener diff --git a/product_attribute_set_completeness/components/product_template_event_listener.py b/product_attribute_set_completeness/components/product_template_event_listener.py new file mode 100644 index 00000000..4d0a0640 --- /dev/null +++ b/product_attribute_set_completeness/components/product_template_event_listener.py @@ -0,0 +1,11 @@ +# Copyright 2020 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.addons.component.core import Component + + +class ProductTemplateEventListener(Component): + _name = "product.template.event.listener" + _inherit = ["attribute.set.owner.event.listener"] + + _apply_on = ["product.template"] diff --git a/product_attribute_set_completeness/i18n/product_attribute_set_completeness.pot b/product_attribute_set_completeness/i18n/product_attribute_set_completeness.pot new file mode 100644 index 00000000..b2a2fb81 --- /dev/null +++ b/product_attribute_set_completeness/i18n/product_attribute_set_completeness.pot @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_attribute_set_completeness +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.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" + +#. module: product_attribute_set_completeness +#: model_terms:ir.ui.view,arch_db:product_attribute_set_completeness.product_template_search_view +msgid "Complete" +msgstr "" + +#. module: product_attribute_set_completeness +#: model_terms:ir.ui.view,arch_db:product_attribute_set_completeness.product_template_search_view +msgid "Not Complete" +msgstr "" + +#. module: product_attribute_set_completeness +#: model_terms:ir.ui.view,arch_db:product_attribute_set_completeness.product_template_view_form +msgid "Not completed attributes" +msgstr "" diff --git a/product_attribute_set_completeness/readme/CONTRIBUTORS.rst b/product_attribute_set_completeness/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..8dda8163 --- /dev/null +++ b/product_attribute_set_completeness/readme/CONTRIBUTORS.rst @@ -0,0 +1,7 @@ +* Cédric PIGEON +* Xavier Bouquiaux +* `Camptocamp `_ + + * Iván Todorovich + +* Dhara Solanki diff --git a/product_attribute_set_completeness/readme/DESCRIPTION.rst b/product_attribute_set_completeness/readme/DESCRIPTION.rst new file mode 100644 index 00000000..4034b2c2 --- /dev/null +++ b/product_attribute_set_completeness/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds the completion rate and the completion state on the products. diff --git a/product_attribute_set_completeness/readme/USAGE.rst b/product_attribute_set_completeness/readme/USAGE.rst new file mode 100644 index 00000000..59b61b17 --- /dev/null +++ b/product_attribute_set_completeness/readme/USAGE.rst @@ -0,0 +1,2 @@ +Completion rate and completion state are visible on the product form. +These 2 properties are also searchable through the search view ("Complete" and "Not Complete" filters). diff --git a/product_attribute_set_completeness/static/description/icon.png b/product_attribute_set_completeness/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/product_attribute_set_completeness/static/description/icon.png differ diff --git a/product_attribute_set_completeness/static/description/index.html b/product_attribute_set_completeness/static/description/index.html new file mode 100644 index 00000000..bcc19cc3 --- /dev/null +++ b/product_attribute_set_completeness/static/description/index.html @@ -0,0 +1,435 @@ + + + + + + +Product Attribute Set Completeness + + + +
+

Product Attribute Set Completeness

+ + +

Beta License: AGPL-3 OCA/odoo-pim Translate me on Weblate Try me on Runbot

+

This module adds the completion rate and the completion state on the products.

+

Table of contents

+ +
+

Usage

+

Completion rate and completion state are visible on the product form. +These 2 properties are also searchable through the search view (“Complete” and “Not Complete” filters).

+
+
+

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
  • +
+
+
+

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

+

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

+
+
+
+ + diff --git a/product_attribute_set_completeness/views/product_template_view.xml b/product_attribute_set_completeness/views/product_template_view.xml new file mode 100644 index 00000000..e455338e --- /dev/null +++ b/product_attribute_set_completeness/views/product_template_view.xml @@ -0,0 +1,74 @@ + + + + + product.template + + + +
+ + + +
+
+ + + + + + + +
+ + product.template.search (in product_attribute_set_completeness) + product.template + + + + + + + + + +
diff --git a/setup/product_attribute_set_completeness/odoo/addons/product_attribute_set_completeness b/setup/product_attribute_set_completeness/odoo/addons/product_attribute_set_completeness new file mode 120000 index 00000000..4c816b87 --- /dev/null +++ b/setup/product_attribute_set_completeness/odoo/addons/product_attribute_set_completeness @@ -0,0 +1 @@ +../../../../product_attribute_set_completeness \ No newline at end of file diff --git a/setup/product_attribute_set_completeness/setup.py b/setup/product_attribute_set_completeness/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/product_attribute_set_completeness/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)