From df620a306853ac7e11892cf5f1fbd51a1e7fedc6 Mon Sep 17 00:00:00 2001 From: lreficent Date: Wed, 24 May 2017 17:24:55 +0200 Subject: [PATCH] [9.0][MIG] quality_control --- quality_control_oca/README.rst | 9 +- quality_control_oca/__init__.py | 8 +- quality_control_oca/__openerp__.py | 17 +- .../data/quality_control_data.xml | 9 +- quality_control_oca/models/__init__.py | 10 +- .../models/product_category.py | 11 +- quality_control_oca/models/product_product.py | 11 +- .../models/product_template.py | 11 +- quality_control_oca/models/qc_inspection.py | 11 +- quality_control_oca/models/qc_test.py | 11 +- .../models/qc_test_category.py | 11 +- quality_control_oca/models/qc_trigger.py | 11 +- quality_control_oca/models/qc_trigger_line.py | 11 +- .../views/product_category_view.xml | 40 +- .../views/product_template_view.xml | 44 +- .../views/qc_inspection_view.xml | 469 +++++++++--------- quality_control_oca/views/qc_menus.xml | 33 +- .../views/qc_test_category_view.xml | 54 +- quality_control_oca/views/qc_test_view.xml | 233 +++++---- quality_control_oca/views/qc_trigger_view.xml | 58 ++- quality_control_oca/wizard/__init__.py | 11 +- quality_control_oca/wizard/qc_test_wizard.py | 11 +- .../wizard/qc_test_wizard_view.xml | 65 ++- 23 files changed, 586 insertions(+), 573 deletions(-) diff --git a/quality_control_oca/README.rst b/quality_control_oca/README.rst index 62770fc46..25db0fd2b 100644 --- a/quality_control_oca/README.rst +++ b/quality_control_oca/README.rst @@ -2,9 +2,9 @@ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -=================================== -Quality control management for Odoo -=================================== +=============== +Quality control +=============== This module provides a generic infrastructure for quality tests. The idea is that it can be later reused for doing quality inspections on production lots @@ -48,7 +48,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/129/8.0 + :target: https://runbot.odoo-community.org/runbot/129/9.0 Known issues / Roadmap @@ -73,6 +73,7 @@ Contributors * Pedro M. Baeza * Oihane Crucelaegui * Ana Juaristi +* Lois Rilo Maintainer ---------- diff --git a/quality_control_oca/__init__.py b/quality_control_oca/__init__.py index 7333c0440..554929776 100644 --- a/quality_control_oca/__init__.py +++ b/quality_control_oca/__init__.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models from . import wizard diff --git a/quality_control_oca/__openerp__.py b/quality_control_oca/__openerp__.py index 4a9e3f2f3..a84cea5ee 100644 --- a/quality_control_oca/__openerp__.py +++ b/quality_control_oca/__openerp__.py @@ -1,24 +1,21 @@ # -*- coding: utf-8 -*- -# (c) 2010 NaN Projectes de Programari Lliure, S.L. (http://www.NaN-tic.com) -# (c) 2014 Serv. Tec. Avanzados - Pedro M. Baeza -# (c) 2014 Oihane Crucelaegui - AvanzOSC -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Quality control", - "version": "8.0.1.3.0", + "version": "9.0.1.3.0", "category": "Quality control", "license": "AGPL-3", "author": "OdooMRP team, " "AvanzOSC, " "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "Eficent, " "Odoo Community Association (OCA)", "website": "http://www.odoomrp.com", - "contributors": [ - "Pedro M. Baeza ", - "Oihane Crucelaegui ", - "Ana Juaristi ", - ], "depends": [ "product", ], diff --git a/quality_control_oca/data/quality_control_data.xml b/quality_control_oca/data/quality_control_data.xml index 22e4d46e7..b5f100389 100644 --- a/quality_control_oca/data/quality_control_data.xml +++ b/quality_control_oca/data/quality_control_data.xml @@ -1,5 +1,5 @@ - + Generic @@ -16,11 +16,6 @@ - - Quality inspection - qc.inspection - - Quality inspection qc.inspection @@ -28,4 +23,4 @@ 6 - + diff --git a/quality_control_oca/models/__init__.py b/quality_control_oca/models/__init__.py index aec418acc..146f17154 100644 --- a/quality_control_oca/models/__init__.py +++ b/quality_control_oca/models/__init__.py @@ -1,7 +1,9 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## +# -*- coding: utf-8 -*- +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import qc_trigger from . import qc_trigger_line diff --git a/quality_control_oca/models/product_category.py b/quality_control_oca/models/product_category.py index 5cf22ff99..d088253d6 100644 --- a/quality_control_oca/models/product_category.py +++ b/quality_control_oca/models/product_category.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import fields, models class ProductCategory(models.Model): diff --git a/quality_control_oca/models/product_product.py b/quality_control_oca/models/product_product.py index 8eca86385..cbeb86923 100644 --- a/quality_control_oca/models/product_product.py +++ b/quality_control_oca/models/product_product.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import fields, models class ProductProduct(models.Model): diff --git a/quality_control_oca/models/product_template.py b/quality_control_oca/models/product_template.py index de2641c37..e781a2b6d 100644 --- a/quality_control_oca/models/product_template.py +++ b/quality_control_oca/models/product_template.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import fields, models class ProductTemplate(models.Model): diff --git a/quality_control_oca/models/qc_inspection.py b/quality_control_oca/models/qc_inspection.py index b6df46170..cd0caf2a2 100644 --- a/quality_control_oca/models/qc_inspection.py +++ b/quality_control_oca/models/qc_inspection.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields, api, exceptions, _ +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import api, exceptions, fields, models, _ import openerp.addons.decimal_precision as dp diff --git a/quality_control_oca/models/qc_test.py b/quality_control_oca/models/qc_test.py index 03b8c4f6f..85de7314a 100644 --- a/quality_control_oca/models/qc_test.py +++ b/quality_control_oca/models/qc_test.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields, api, exceptions, _ +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import api, exceptions, fields, models, _ import openerp.addons.decimal_precision as dp diff --git a/quality_control_oca/models/qc_test_category.py b/quality_control_oca/models/qc_test_category.py index bdb1bdfc3..061d4b93d 100644 --- a/quality_control_oca/models/qc_test_category.py +++ b/quality_control_oca/models/qc_test_category.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields, api, exceptions, _ +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import api, exceptions, fields, models, _ class QcTestTemplateCategory(models.Model): diff --git a/quality_control_oca/models/qc_trigger.py b/quality_control_oca/models/qc_trigger.py index 208e35e19..83cbbceaf 100644 --- a/quality_control_oca/models/qc_trigger.py +++ b/quality_control_oca/models/qc_trigger.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import fields, models class QcTrigger(models.Model): diff --git a/quality_control_oca/models/qc_trigger_line.py b/quality_control_oca/models/qc_trigger_line.py index 629bcb679..fd485c087 100644 --- a/quality_control_oca/models/qc_trigger_line.py +++ b/quality_control_oca/models/qc_trigger_line.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import fields, models def _filter_trigger_lines(trigger_lines): diff --git a/quality_control_oca/views/product_category_view.xml b/quality_control_oca/views/product_category_view.xml index 79ef57ef9..f592aa95c 100644 --- a/quality_control_oca/views/product_category_view.xml +++ b/quality_control_oca/views/product_category_view.xml @@ -1,26 +1,24 @@ - - - product.category.qc - product.category - - - - - - - - - - - - - - - - + + product.category.qc + product.category + + + + + + + + + + + + + + + + - diff --git a/quality_control_oca/views/product_template_view.xml b/quality_control_oca/views/product_template_view.xml index 3eb7082f1..2d33d95e9 100644 --- a/quality_control_oca/views/product_template_view.xml +++ b/quality_control_oca/views/product_template_view.xml @@ -1,26 +1,24 @@ - - + - - product.template.qc - product.template - - - - - - - - - - - - - - - - + + product.template.qc + product.template + + + + + + + + + + + + + + + + - - + diff --git a/quality_control_oca/views/qc_inspection_view.xml b/quality_control_oca/views/qc_inspection_view.xml index 74f8e31c6..6d183f7b3 100644 --- a/quality_control_oca/views/qc_inspection_view.xml +++ b/quality_control_oca/views/qc_inspection_view.xml @@ -1,254 +1,253 @@ - - + - - qc.inspection.form - qc.inspection - -
-
-
+ +
+
-

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - + string="Set test" />
-
-
-
+

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + - - qc.inspection.tree - qc.inspection - - + + qc.inspection.tree + qc.inspection + + + + + + + + + + + + + + + qc.inspection.search + qc.inspection + + + - - + - - - - - + + + + + + + + + + + + + + + + + + - - qc.inspection.search - qc.inspection - - - - - - - - - - - - - - - - - - - - - - - - - + + Inspections + qc.inspection + form + tree,form + - - Inspections - qc.inspection - form - tree,form - + - + + qc.inspection.line.tree + qc.inspection.line + + + + + + + + + + + + + + + + - - qc.inspection.line.tree - qc.inspection.line - - + + qc.inspection.line.search + qc.inspection.line + + + + - - - - - - - - - - - + + + + + + + + + + + + + + - - qc.inspection.line.search - qc.inspection.line - - - - - - - - - - - - - - - - - - - - - + + Inspection lines + qc.inspection.line + form + tree + - - Inspection lines - qc.inspection.line - form - tree - + - -
-
+ diff --git a/quality_control_oca/views/qc_menus.xml b/quality_control_oca/views/qc_menus.xml index 91e115f75..4577244b5 100644 --- a/quality_control_oca/views/qc_menus.xml +++ b/quality_control_oca/views/qc_menus.xml @@ -1,21 +1,20 @@ - - + - + - + - - - + + + diff --git a/quality_control_oca/views/qc_test_category_view.xml b/quality_control_oca/views/qc_test_category_view.xml index 94765388b..6fba55984 100644 --- a/quality_control_oca/views/qc_test_category_view.xml +++ b/quality_control_oca/views/qc_test_category_view.xml @@ -1,33 +1,31 @@ - - + - - qc.test.category.tree - qc.test.category - - - - - - - - - + + qc.test.category.tree + qc.test.category + + + + + + + + + - - Test categories - qc.test.category - form - tree,form - + + Test categories + qc.test.category + form + tree,form + - + - - + diff --git a/quality_control_oca/views/qc_test_view.xml b/quality_control_oca/views/qc_test_view.xml index 2a255f28b..3bf10f515 100644 --- a/quality_control_oca/views/qc_test_view.xml +++ b/quality_control_oca/views/qc_test_view.xml @@ -1,128 +1,125 @@ - - - qc.test.form - qc.test - -
- - -
-
-
- - - qc.test.tree - qc.test - - - - - - - - - - - - - Tests - qc.test - form - tree,form - - - - qc.test.question.form - qc.test.question - -
-
+
- + + qc.test.tree + qc.test + + + + + + + + + + + + + Tests + qc.test + form + tree,form + + + + qc.test.question.form + qc.test.question + +
+
+ + -
- diff --git a/quality_control_oca/views/qc_trigger_view.xml b/quality_control_oca/views/qc_trigger_view.xml index 9c39b965e..3d9b11b78 100644 --- a/quality_control_oca/views/qc_trigger_view.xml +++ b/quality_control_oca/views/qc_trigger_view.xml @@ -1,35 +1,33 @@ - - + - - qc.trigger.form - qc.trigger - -
- - - - - - - - -
-
-
+ + qc.trigger.form + qc.trigger + +
+ + + + + + + + +
+
+
- - qc.trigger.tree - qc.trigger - - - - - - - + + qc.trigger.tree + qc.trigger + + + + + + + -
-
+ diff --git a/quality_control_oca/wizard/__init__.py b/quality_control_oca/wizard/__init__.py index 64c91e557..f7710e472 100644 --- a/quality_control_oca/wizard/__init__.py +++ b/quality_control_oca/wizard/__init__.py @@ -1,5 +1,8 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## +# -*- coding: utf-8 -*- +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + from . import qc_test_wizard diff --git a/quality_control_oca/wizard/qc_test_wizard.py b/quality_control_oca/wizard/qc_test_wizard.py index 8b32112cd..fc5bedceb 100644 --- a/quality_control_oca/wizard/qc_test_wizard.py +++ b/quality_control_oca/wizard/qc_test_wizard.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields, api +# Copyright 2010 NaN Projectes de Programari Lliure, S.L. +# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza +# Copyright 2014 Oihane Crucelaegui - AvanzOSC +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import api, fields, models class QcInspectionSetTest(models.TransientModel): diff --git a/quality_control_oca/wizard/qc_test_wizard_view.xml b/quality_control_oca/wizard/qc_test_wizard_view.xml index 4c86f4738..4cb3ed5bb 100644 --- a/quality_control_oca/wizard/qc_test_wizard_view.xml +++ b/quality_control_oca/wizard/qc_test_wizard_view.xml @@ -1,36 +1,35 @@ - - - - qc.inspection.set.test.form - qc.inspection.set.test - -
- - - -
-
-
-
-
+ - - Select test - ir.actions.act_window - qc.inspection.set.test - form - form - new - + + qc.inspection.set.test.form + qc.inspection.set.test + +
+ + + +
+
+
+
+
-
-
+ + Select test + ir.actions.act_window + qc.inspection.set.test + form + form + new + + +