diff --git a/quality_control_product_manufacturer/README.rst b/quality_control_product_manufacturer/README.rst new file mode 100644 index 00000000000..90b6f8c863d --- /dev/null +++ b/quality_control_product_manufacturer/README.rst @@ -0,0 +1,78 @@ +==================================== +Quality Control Product Manufacturer +==================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:232c142485c913ca91ecdd6d64034f757d2ffb753d6e126db9b45cee9c4a6c42 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fmanufacture-lightgray.png?logo=github + :target: https://github.com/OCA/manufacture/tree/18.0/quality_control_product_manufacturer + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-18-0/manufacture-18-0-quality_control_product_manufacturer + :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/manufacture&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module provides information related to Manufacturer and its code +based on the product_id available as part of selection made in the +Reference field in qc inspection form. + +**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 +------- + +* Anusri Veerappan Prakasam + +Contributors +------------ + +- Anusri Veerappan Prakasam + +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/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/quality_control_product_manufacturer/__init__.py b/quality_control_product_manufacturer/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/quality_control_product_manufacturer/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/quality_control_product_manufacturer/__manifest__.py b/quality_control_product_manufacturer/__manifest__.py new file mode 100644 index 00000000000..d026ae20f51 --- /dev/null +++ b/quality_control_product_manufacturer/__manifest__.py @@ -0,0 +1,15 @@ +{ + "name": "Quality Control Product Manufacturer", + "version": "18.0.1.0.0", + "category": "Quality Control", + "license": "AGPL-3", + "summary": "Provides information related to Manufacturer under Inspection", + "author": "Anusri Veerappan Prakasam, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/manufacture", + "depends": ["quality_control_oca", "product_manufacturer"], + "data": [ + "views/qc_inspection_views.xml", + ], + "demo": [], + "installable": True, +} diff --git a/quality_control_product_manufacturer/i18n/it.po b/quality_control_product_manufacturer/i18n/it.po new file mode 100644 index 00000000000..e9770e80692 --- /dev/null +++ b/quality_control_product_manufacturer/i18n/it.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * quality_control_product_manufacturer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-11-12 09:42+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.10.4\n" + +#. module: quality_control_product_manufacturer +#: model:ir.model.fields,field_description:quality_control_product_manufacturer.field_qc_inspection__manufacturer +#: model_terms:ir.ui.view,arch_db:quality_control_product_manufacturer.qc_inspection_form_view_product_manufacturer +msgid "Manufacturer" +msgstr "Produttore" + +#. module: quality_control_product_manufacturer +#: model:ir.model.fields,field_description:quality_control_product_manufacturer.field_qc_inspection__manufacturer_code +msgid "Manufacturer Code" +msgstr "Codice produttore" + +#. module: quality_control_product_manufacturer +#: model:ir.model,name:quality_control_product_manufacturer.model_qc_inspection +msgid "Quality control inspection" +msgstr "Ispezione controllo di qualità" diff --git a/quality_control_product_manufacturer/i18n/quality_control_product_manufacturer.pot b/quality_control_product_manufacturer/i18n/quality_control_product_manufacturer.pot new file mode 100644 index 00000000000..5af9a6b2358 --- /dev/null +++ b/quality_control_product_manufacturer/i18n/quality_control_product_manufacturer.pot @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * quality_control_product_manufacturer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: quality_control_product_manufacturer +#: model:ir.model.fields,field_description:quality_control_product_manufacturer.field_qc_inspection__manufacturer +#: model_terms:ir.ui.view,arch_db:quality_control_product_manufacturer.qc_inspection_form_view_product_manufacturer +msgid "Manufacturer" +msgstr "" + +#. module: quality_control_product_manufacturer +#: model:ir.model.fields,field_description:quality_control_product_manufacturer.field_qc_inspection__manufacturer_code +msgid "Manufacturer Code" +msgstr "" + +#. module: quality_control_product_manufacturer +#: model:ir.model,name:quality_control_product_manufacturer.model_qc_inspection +msgid "Quality control inspection" +msgstr "" diff --git a/quality_control_product_manufacturer/models/__init__.py b/quality_control_product_manufacturer/models/__init__.py new file mode 100644 index 00000000000..cf2be01357a --- /dev/null +++ b/quality_control_product_manufacturer/models/__init__.py @@ -0,0 +1 @@ +from . import qc_inspection diff --git a/quality_control_product_manufacturer/models/qc_inspection.py b/quality_control_product_manufacturer/models/qc_inspection.py new file mode 100644 index 00000000000..fb0bbf0f78a --- /dev/null +++ b/quality_control_product_manufacturer/models/qc_inspection.py @@ -0,0 +1,16 @@ +from odoo import fields, models + + +class QcInspection(models.Model): + """ + Quality Control Inspection with Manufacturer details + """ + + _inherit = "qc.inspection" + + manufacturer = fields.Many2one( + related="product_id.manufacturer_id", string="Manufacturer" + ) + manufacturer_code = fields.Char( + related="product_id.manufacturer_pref", string="Manufacturer Code" + ) diff --git a/quality_control_product_manufacturer/pyproject.toml b/quality_control_product_manufacturer/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/quality_control_product_manufacturer/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/quality_control_product_manufacturer/readme/CONTRIBUTORS.md b/quality_control_product_manufacturer/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..1ed0dede677 --- /dev/null +++ b/quality_control_product_manufacturer/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Anusri Veerappan Prakasam \ diff --git a/quality_control_product_manufacturer/readme/DESCRIPTION.md b/quality_control_product_manufacturer/readme/DESCRIPTION.md new file mode 100644 index 00000000000..63a5196c6ab --- /dev/null +++ b/quality_control_product_manufacturer/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module provides information related to Manufacturer and its code +based on the product_id available as part of selection made in the +Reference field in qc inspection form. diff --git a/quality_control_product_manufacturer/static/description/icon.png b/quality_control_product_manufacturer/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/quality_control_product_manufacturer/static/description/icon.png differ diff --git a/quality_control_product_manufacturer/static/description/index.html b/quality_control_product_manufacturer/static/description/index.html new file mode 100644 index 00000000000..a7baee6a220 --- /dev/null +++ b/quality_control_product_manufacturer/static/description/index.html @@ -0,0 +1,425 @@ + + + + + +Quality Control Product Manufacturer + + + +
+

Quality Control Product Manufacturer

+ + +

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

+

This module provides information related to Manufacturer and its code +based on the product_id available as part of selection made in the +Reference field in qc inspection form.

+

Table of contents

+ +
+

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

+
    +
  • Anusri Veerappan Prakasam
  • +
+
+
+

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

+

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

+
+
+
+ + diff --git a/quality_control_product_manufacturer/views/qc_inspection_views.xml b/quality_control_product_manufacturer/views/qc_inspection_views.xml new file mode 100644 index 00000000000..3d199d74616 --- /dev/null +++ b/quality_control_product_manufacturer/views/qc_inspection_views.xml @@ -0,0 +1,33 @@ + + + + qc.inspection.form.view.product.manufacturer + qc.inspection + + + + + + + + + + + + + + qc.inspection.search.product.manufacturer + qc.inspection + + + + + + + + +