diff --git a/egd_work_evaluation_mandatory/README.rst b/egd_work_evaluation_mandatory/README.rst new file mode 100644 index 0000000..5a6f466 --- /dev/null +++ b/egd_work_evaluation_mandatory/README.rst @@ -0,0 +1,82 @@ +============================= +Egd Work Evaluation Mandatory +============================= +.. |badge1| 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 + +|badge1| + +This module creates a field where you select whether work evaluation is mandatory, and inserts a view in the purchasing module where you can monitor which suppliers have mandatory evaluations. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module you need: + +1- Access the supplier's contact information in the EXIT tab and find the mandatory evaluation field +2 - Check the box if the supplier has a mandatory evaluation +3 - To check the list of suppliers with mandatory evaluation, +access the purchasing module in the Mandatory IQF Evaluations menu + +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 smash it by providing detailed and welcomed feedback. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Escodoo + +Contributors +~~~~~~~~~~~~ + +* Marcel Savegnago +* Matheus Marques + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Escodoo - `https://www.escodoo.com.br `_ + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the Escodoo. + +.. |maintainer-escodoo| image:: https://github.com/escodoo.png?size=80px + :target: https://github.com/Escodoo + :alt: escodoo + +|maintainer-escodoo| + +We at Escodoo are exclusively dedicated to deploying the Odoo Platform and are +focused on providing solutions that make our customers more competitive, lowering +costs, making technology more accessible and ensuring it is used strategically to +add even more value to the business. + +.. |maintainer-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px + :target: https://github.com/marcelsavegnago + :alt: marcelsavegnago + +Current `maintainer `__: + +|maintainer-marcelsavegnago| + +To contribute to this module, please visit https://www.escodoo.com.br. diff --git a/egd_work_evaluation_mandatory/__init__.py b/egd_work_evaluation_mandatory/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/egd_work_evaluation_mandatory/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/egd_work_evaluation_mandatory/__manifest__.py b/egd_work_evaluation_mandatory/__manifest__.py new file mode 100644 index 0000000..25b4e0b --- /dev/null +++ b/egd_work_evaluation_mandatory/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2024 - TODAY, Escodoo +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Egd Work Evaluation Mandatory", + "summary": """ + This module creates a field where you select whether work evaluation is mandatory.""", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "Escodoo", + "website": "https://github.com/Escodoo/egd-addons", + "depends": ["purchase", "supplier_quality_index"], + "data": [ + "views/res_partner.xml", + "views/purchase_view.xml", + ], +} diff --git a/egd_work_evaluation_mandatory/models/__init__.py b/egd_work_evaluation_mandatory/models/__init__.py new file mode 100644 index 0000000..91fed54 --- /dev/null +++ b/egd_work_evaluation_mandatory/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/egd_work_evaluation_mandatory/models/res_partner.py b/egd_work_evaluation_mandatory/models/res_partner.py new file mode 100644 index 0000000..0eb030b --- /dev/null +++ b/egd_work_evaluation_mandatory/models/res_partner.py @@ -0,0 +1,13 @@ +# Copyright 2024 - TODAY, Matheus Marques +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResPartner(models.Model): + + _inherit = "res.partner" + + is_evaluation_mandatory = fields.Boolean( + string="Evaluation Mandatory", default=False + ) diff --git a/egd_work_evaluation_mandatory/readme/CONTRIBUTORS.rst b/egd_work_evaluation_mandatory/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..d019575 --- /dev/null +++ b/egd_work_evaluation_mandatory/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +Marcel Savegnago +Matheus Marques diff --git a/egd_work_evaluation_mandatory/readme/DESCRIPTION.rst b/egd_work_evaluation_mandatory/readme/DESCRIPTION.rst new file mode 100644 index 0000000..705a659 --- /dev/null +++ b/egd_work_evaluation_mandatory/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module creates a field where you select whether work evaluation is mandatory, and inserts a view in the purchasing module where you can monitor which suppliers have mandatory evaluations. diff --git a/egd_work_evaluation_mandatory/readme/USAGE.rst b/egd_work_evaluation_mandatory/readme/USAGE.rst new file mode 100644 index 0000000..3393464 --- /dev/null +++ b/egd_work_evaluation_mandatory/readme/USAGE.rst @@ -0,0 +1,6 @@ +To use this module you need: + +1- Access the supplier's contact information in the EXIT tab and find the mandatory evaluation field +2 - Check the box if the supplier has a mandatory evaluation +3 - To check the list of suppliers with mandatory evaluation, +access the purchasing module in the Mandatory IQF Evaluations menu diff --git a/egd_work_evaluation_mandatory/static/description/icon.png b/egd_work_evaluation_mandatory/static/description/icon.png new file mode 100644 index 0000000..12ab005 Binary files /dev/null and b/egd_work_evaluation_mandatory/static/description/icon.png differ diff --git a/egd_work_evaluation_mandatory/views/purchase_view.xml b/egd_work_evaluation_mandatory/views/purchase_view.xml new file mode 100644 index 0000000..fe5c4e1 --- /dev/null +++ b/egd_work_evaluation_mandatory/views/purchase_view.xml @@ -0,0 +1,14 @@ + + + + + + + diff --git a/egd_work_evaluation_mandatory/views/res_partner.xml b/egd_work_evaluation_mandatory/views/res_partner.xml new file mode 100644 index 0000000..44e8e55 --- /dev/null +++ b/egd_work_evaluation_mandatory/views/res_partner.xml @@ -0,0 +1,37 @@ + + + + + + res.partner.form (in egd_work_evaluation_mandatory) + res.partner + + + + + + + + + + + res.partner.tree (in egd_work_evaluation_mandatory) + res.partner + + + + + + + + + + Evaluation Mandatory + res.partner + tree + + [('is_evaluation_mandatory', '=', True)] + + + diff --git a/setup/egd_work_evaluation_mandatory/odoo/addons/egd_work_evaluation_mandatory b/setup/egd_work_evaluation_mandatory/odoo/addons/egd_work_evaluation_mandatory new file mode 120000 index 0000000..e1d78ce --- /dev/null +++ b/setup/egd_work_evaluation_mandatory/odoo/addons/egd_work_evaluation_mandatory @@ -0,0 +1 @@ +../../../../egd_work_evaluation_mandatory \ No newline at end of file diff --git a/setup/egd_work_evaluation_mandatory/setup.py b/setup/egd_work_evaluation_mandatory/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/egd_work_evaluation_mandatory/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)