Skip to content

Commit

Permalink
[MIG] quality_control_plan migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mymage committed Aug 3, 2023
1 parent 45883e0 commit c591a6d
Show file tree
Hide file tree
Showing 26 changed files with 539 additions and 450 deletions.
32 changes: 22 additions & 10 deletions quality_control_plan/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Quality Control - Control Plan
: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/11.0/quality_control_plan
:target: https://github.com/OCA/manufacture/tree/14.0/quality_control_plan
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-11-0/manufacture-11-0-quality_control_plan
:target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-quality_control_plan
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/129/11.0
:target: https://runbot.odoo-community.org/runbot/129/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -62,28 +62,40 @@ Usage
Steps to follow to use Control Plans:

- create a list of Control Plans
- define levels of control for Control Pans
- define levels of control for Control Plans

**Control Plan**
* Go to Quality Control
* Go to Quality Control
* From Test menu select Control Plan
* Create a Control Plan with a name, description and eventually with Free Pass flag checked

**Control Plan Levels**

- Option A
* Go to Quality Control
* Go to Quality Control
* From Test menu select Control Plan
* Select a Control Plan
* Add rows with quantity level, value to check, type of value

- Option B
* Go to Quality Control
* Go to Quality Control
* From Test menu select Control Plan Levels
* Create a new element selecting the Control Plan and filling other fields

**Set Plan for Product**
* Go to Product → Inventory tab
* On Quality Control section insert a Trigger

**Set Plan for Product Category**
* Go to Product Category
* On Quality Control section insert a Trigger

**Set Plan for Partner**
* Go to Partner or Vendor → Quality tab
* On Quality Control section insert a Trigger

**Inspection → Nonconformity**
* Go to Qaulity Control
* Go to Quality Control
* From Inspection menu select Inspection
* Open or create an Inspection
* On tab Nonconformity add a new line, or click «Add Nonconformity»
Expand All @@ -108,7 +120,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/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 <https://github.com/OCA/manufacture/issues/new?body=module:%20quality_control_plan%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20quality_control_plan%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -139,6 +151,6 @@ 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 <https://github.com/OCA/manufacture/tree/11.0/quality_control_plan>`_ project on GitHub.
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/14.0/quality_control_plan>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 0 additions & 1 deletion quality_control_plan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from . import (
models,
)
48 changes: 22 additions & 26 deletions quality_control_plan/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,29 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Quality Control - Control Plan",
"summary": "Control Plan for Inspection quantity definition.",
"version": "11.0.1.0.0",

"author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)",
"website": "https://gitlab.com/PNLUG/Odoo/management-system-improvements/tree/"
"11.0/quality_control_plan",
"license": "AGPL-3",

"name": "Quality Control - Control Plan",
"summary": "Control Plan for Inspection quantity definition.",
"version": "14.0.1.0.0",
"author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"license": "AGPL-3",
"category": "Quality control",

"depends": [
'stock',
'product',
'mgmtsystem',
'mgmtsystem_nonconformity',
'quality_control',
'quality_control_stock',
],
"stock",
"product",
"mgmtsystem",
"mgmtsystem_nonconformity",
"quality_control_oca",
"quality_control_stock_oca",
],
"data": [
'security/ir.model.access.csv',
'views/qc_menu.xml',
'views/qc_plan_view.xml',
'views/qc_inspection_view.xml',
'views/mgmtsystem_nonconformity_view.xml',
'views/partner_view.xml',
'views/product_view.xml',
],
'installable': True,
"security/ir.model.access.csv",
"views/qc_menu.xml",
"views/qc_plan_view.xml",
"views/qc_inspection_view.xml",
"views/mgmtsystem_nonconformity_view.xml",
"views/partner_view.xml",
"views/product_view.xml",
],
"installable": True,
}
11 changes: 8 additions & 3 deletions quality_control_plan/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

from . import mgmtsystem_nonconformity_inspection, partner_quality, \
qc_inspection_plan, qc_plan, qc_trigger, stock_picking_inspection
from . import (
mgmtsystem_nonconformity_inspection,
partner_quality,
qc_inspection_plan,
qc_plan,
qc_trigger,
stock_picking_inspection,
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class MgmtsystemMgmInspection(models.Model):
Extends nonconformity adding related inspection
"""

_inherit = ['mgmtsystem.nonconformity']
_inherit = ["mgmtsystem.nonconformity"]

# new field
# inspection reference
inspection_id = fields.Many2one('qc.inspection', 'Inspection')
inspection_id = fields.Many2one("qc.inspection", "Inspection")
6 changes: 3 additions & 3 deletions quality_control_plan/models/partner_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ class MgmtsystemMgmPartner(models.Model):
Extends partner with quality control triggers
"""

_inherit = ['res.partner']
_inherit = ["res.partner"]

# new fields
# trigger to activate inspection
qc_triggers = fields.One2many(
comodel_name="qc.trigger.partner_line",
inverse_name="partner",
string="Quality control triggers"
)
string="Quality control triggers",
)
8 changes: 4 additions & 4 deletions quality_control_plan/models/product_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ class QcProduct(models.Model):
Extends product model with a field to store quality control plan assigned
"""

_inherit = ['qc.trigger.product_template_line']
_inherit = ["qc.trigger.product_template_line"]

# new filed
# product's control plan
plan_id = fields.Many2one('qc.plan', 'Plan')
plan_id = fields.Many2one("qc.plan", "Plan")


class QcCategory(models.Model):
"""
Extends product category model with a field to store quality control plan assigned
"""

_inherit = ['qc.trigger.product_category_line']
_inherit = ["qc.trigger.product_category_line"]

# new filed
# sets product category's control plan
plan_id = fields.Many2one('qc.plan', 'Plan')
plan_id = fields.Many2one("qc.plan", "Plan")
Loading

0 comments on commit c591a6d

Please sign in to comment.