[9.0][MIG] quality_control

This commit is contained in:
lreficent
2017-05-24 17:24:55 +02:00
parent 9ee316df7e
commit 1baa7c9fc2
20 changed files with 514 additions and 535 deletions

View File

@@ -2,9 +2,9 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
=================================== ===============
Quality control management for Odoo Quality control
=================================== ===============
This module provides a generic infrastructure for quality tests. The idea is 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 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 .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :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 Known issues / Roadmap
@@ -73,6 +73,7 @@ Contributors
* Pedro M. Baeza <pedro.baeza@serviciobaeza.com> * Pedro M. Baeza <pedro.baeza@serviciobaeza.com>
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es> * Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Ana Juaristi <anajuaristi@avanzosc.es> * Ana Juaristi <anajuaristi@avanzosc.es>
* Lois Rilo <lois.rilo@eficent.com>
Maintainer Maintainer
---------- ----------

View File

@@ -1,24 +1,21 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# (c) 2010 NaN Projectes de Programari Lliure, S.L. (http://www.NaN-tic.com) # Copyright 2010 NaN Projectes de Programari Lliure, S.L.
# (c) 2014 Serv. Tec. Avanzados - Pedro M. Baeza # Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza
# (c) 2014 Oihane Crucelaegui - AvanzOSC # Copyright 2014 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html # Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 - See http://www.gnu.org/licenses/agpl-3.0.html
{ {
"name": "Quality control", "name": "Quality control",
"version": "8.0.1.3.0", "version": "9.0.1.3.0",
"category": "Quality control", "category": "Quality control",
"license": "AGPL-3", "license": "AGPL-3",
"author": "OdooMRP team, " "author": "OdooMRP team, "
"AvanzOSC, " "AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, " "Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Eficent, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",
"website": "http://www.odoomrp.com", "website": "http://www.odoomrp.com",
"contributors": [
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>",
"Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>",
"Ana Juaristi <anajuaristi@avanzosc.es>",
],
"depends": [ "depends": [
"product", "product",
], ],

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <odoo>
<data noupdate="1"> <data noupdate="1">
<record id="qc_test_template_category_generic" model="qc.test.category"> <record id="qc_test_template_category_generic" model="qc.test.category">
<field name="name">Generic</field> <field name="name">Generic</field>
@@ -16,11 +16,6 @@
</data> </data>
<data> <data>
<record id="seq_type_qc_inspection" model="ir.sequence.type">
<field name="name">Quality inspection</field>
<field name="code">qc.inspection</field>
</record>
<record id="seq_qc_inspection" model="ir.sequence"> <record id="seq_qc_inspection" model="ir.sequence">
<field name="name">Quality inspection</field> <field name="name">Quality inspection</field>
<field name="code">qc.inspection</field> <field name="code">qc.inspection</field>
@@ -28,4 +23,4 @@
<field name="padding">6</field> <field name="padding">6</field>
</record> </record>
</data> </data>
</openerp> </odoo>

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields from openerp import fields, models
class ProductCategory(models.Model): class ProductCategory(models.Model):

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields from openerp import fields, models
class ProductProduct(models.Model): class ProductProduct(models.Model):

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields from openerp import fields, models
class ProductTemplate(models.Model): class ProductTemplate(models.Model):

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields, api, exceptions, _ from openerp import api, exceptions, fields, models, _
import openerp.addons.decimal_precision as dp import openerp.addons.decimal_precision as dp

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields, api, exceptions, _ from openerp import api, exceptions, fields, models, _
import openerp.addons.decimal_precision as dp import openerp.addons.decimal_precision as dp

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields, api, exceptions, _ from openerp import api, exceptions, fields, models, _
class QcTestTemplateCategory(models.Model): class QcTestTemplateCategory(models.Model):

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields from openerp import fields, models
class QcTrigger(models.Model): class QcTrigger(models.Model):

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields from openerp import fields, models
def _filter_trigger_lines(trigger_lines): def _filter_trigger_lines(trigger_lines):

View File

@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<record model="ir.ui.view" id="product_category_qc_form_view"> <record model="ir.ui.view" id="product_category_qc_form_view">
<field name="name">product.category.qc</field> <field name="name">product.category.qc</field>
<field name="model">product.category</field> <field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view"/> <field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<sheet position="inside"> <group name="first" position="after">
<group name="qc" string="Quality control"> <group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1"> <field name="qc_triggers" nolabel="1">
<tree string="Quality control triggers" editable="bottom"> <tree string="Quality control triggers" editable="bottom">
@@ -18,9 +17,8 @@
</tree> </tree>
</field> </field>
</group> </group>
</sheet> </group>
</field> </field>
</record> </record>
</data>
</openerp> </openerp>

View File

@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <odoo>
<data>
<record model="ir.ui.view" id="product_template_qc_form_view"> <record model="ir.ui.view" id="product_template_qc_form_view">
<field name="name">product.template.qc</field> <field name="name">product.template.qc</field>
<field name="model">product.template</field> <field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/> <field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<page string="Inventory" position="inside"> <xpath expr="//page[2]" position="inside">
<group name="qc" string="Quality control"> <group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1"> <field name="qc_triggers" nolabel="1">
<tree string="Quality control triggers" editable="bottom"> <tree string="Quality control triggers" editable="bottom">
@@ -18,9 +17,8 @@
</tree> </tree>
</field> </field>
</group> </group>
</page> </xpath>
</field> </field>
</record> </record>
</data> </odoo>
</openerp>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <odoo>
<data>
<record model="ir.ui.view" id="qc_inspection_form_view"> <record model="ir.ui.view" id="qc_inspection_form_view">
<field name="name">qc.inspection.form</field> <field name="name">qc.inspection.form</field>
@@ -249,6 +248,6 @@
parent="qc_inspection_menu_parent" parent="qc_inspection_menu_parent"
id="qc_inspection_lines_menu" id="qc_inspection_lines_menu"
action="action_qc_inspection_line" /> action="action_qc_inspection_line" />
</data>
</openerp> </odoo>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <odoo>
<data>
<menuitem name="Quality control" <menuitem name="Quality control"
id="qc_menu" id="qc_menu"
@@ -17,5 +16,5 @@
id="qc_menu_test_parent" id="qc_menu_test_parent"
groups="group_quality_control_manager" groups="group_quality_control_manager"
sequence="20" /> sequence="20" />
</data>
</openerp> </odoo>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <odoo>
<data>
<record model="ir.ui.view" id="qc_test_category_tree_view"> <record model="ir.ui.view" id="qc_test_category_tree_view">
<field name="name">qc.test.category.tree</field> <field name="name">qc.test.category.tree</field>
@@ -29,5 +28,4 @@
groups="group_quality_control_manager" groups="group_quality_control_manager"
sequence="10" /> sequence="10" />
</data> </odoo>
</openerp>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<record model="ir.ui.view" id="qc_test_form_view"> <record model="ir.ui.view" id="qc_test_form_view">
<field name="name">qc.test.form</field> <field name="name">qc.test.form</field>
@@ -123,6 +122,4 @@
groups="group_quality_control_manager" groups="group_quality_control_manager"
sequence="20" /> sequence="20" />
</data>
</openerp> </openerp>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <odoo>
<data>
<record model="ir.ui.view" id="qc_trigger_form_view"> <record model="ir.ui.view" id="qc_trigger_form_view">
<field name="name">qc.trigger.form</field> <field name="name">qc.trigger.form</field>
@@ -30,6 +29,5 @@
</field> </field>
</record> </record>
</data> </odoo>
</openerp>

View File

@@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory # For copyright and license notices, see __openerp__.py file in root directory
############################################################################## ##############################################################################
from openerp import models, fields, api from openerp import api, fields, models
class QcInspectionSetTest(models.TransientModel): class QcInspectionSetTest(models.TransientModel):

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<openerp> <odoo>
<data>
<record id="view_qc_test_set_test_form" model="ir.ui.view"> <record id="view_qc_test_set_test_form" model="ir.ui.view">
<field name="name">qc.inspection.set.test.form</field> <field name="name">qc.inspection.set.test.form</field>
<field name="model">qc.inspection.set.test</field> <field name="model">qc.inspection.set.test</field>
@@ -32,5 +32,4 @@
<field name="target">new</field> <field name="target">new</field>
</record> </record>
</data> </odoo>
</openerp>