Skip to content

Commit

Permalink
Merge pull request #37 from Escodoo/14.0-add-egd_work_evaluation_mand…
Browse files Browse the repository at this point in the history
…atory

[ADD] egd_work_evaluation_mandatory: add new module
  • Loading branch information
marcelsavegnago authored Mar 4, 2024
2 parents e203cd1 + 94f909e commit de16075
Show file tree
Hide file tree
Showing 13 changed files with 181 additions and 0 deletions.
82 changes: 82 additions & 0 deletions egd_work_evaluation_mandatory/README.rst
Original file line number Diff line number Diff line change
@@ -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
<https://github.com/Escodoo/{project_repo}/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 <[email protected]>
* Matheus Marques <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Escodoo - `https://www.escodoo.com.br <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 <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-marcelsavegnago|

To contribute to this module, please visit https://www.escodoo.com.br.
1 change: 1 addition & 0 deletions egd_work_evaluation_mandatory/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions egd_work_evaluation_mandatory/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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",
],
}
1 change: 1 addition & 0 deletions egd_work_evaluation_mandatory/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
13 changes: 13 additions & 0 deletions egd_work_evaluation_mandatory/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 - TODAY, Matheus Marques <[email protected]>
# 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
)
2 changes: 2 additions & 0 deletions egd_work_evaluation_mandatory/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Marcel Savegnago <[email protected]>
Matheus Marques <[email protected]>
1 change: 1 addition & 0 deletions egd_work_evaluation_mandatory/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions egd_work_evaluation_mandatory/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions egd_work_evaluation_mandatory/views/purchase_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 - TODAY, Matheus Marques <[email protected]>
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>


<menuitem
id="menu_partner_evaluation_mandatory"
parent="purchase.menu_procurement_management"
name="Evaluation Mandatory"
action="action_partner_evaluation_mandatory"
sequence="10"
/>
</odoo>
37 changes: 37 additions & 0 deletions egd_work_evaluation_mandatory/views/res_partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 - TODAY, Matheus Marques <[email protected]>
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

<record model="ir.ui.view" id="res_partner_form_view">
<field name="name">res.partner.form (in egd_work_evaluation_mandatory)</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='sqi_value_date']" position="before">
<field name="is_evaluation_mandatory" />
</xpath>
</field>
</record>


<record model="ir.ui.view" id="res_partner_tree_view">
<field name="name">res.partner.tree (in egd_work_evaluation_mandatory)</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="is_evaluation_mandatory" />
</tree>
</field>
</record>

<record id="action_partner_evaluation_mandatory" model="ir.actions.act_window">
<field name="name">Evaluation Mandatory</field>
<field name="res_model">res.partner</field>
<field name="view_mode">tree</field>
<field name="view_id" ref="res_partner_tree_view" />
<field name="domain">[('is_evaluation_mandatory', '=', True)]</field>
</record>

</odoo>
6 changes: 6 additions & 0 deletions setup/egd_work_evaluation_mandatory/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit de16075

Please sign in to comment.