Skip to content

Commit

Permalink
[9.0][MIG] quality_control
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisRForgeFlow committed May 24, 2017
1 parent 066807f commit 374ba42
Show file tree
Hide file tree
Showing 20 changed files with 510 additions and 531 deletions.
9 changes: 5 additions & 4 deletions quality_control/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -73,6 +73,7 @@ Contributors
* Pedro M. Baeza <pedro.baeza@serviciobaeza.com>
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Ana Juaristi <anajuaristi@avanzosc.es>
* Lois Rilo <lois.rilo@eficent.com>

Maintainer
----------
Expand Down
17 changes: 7 additions & 10 deletions quality_control/__openerp__.py
Original file line number Diff line number Diff line change
@@ -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 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"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 <pedro.baeza@serviciosbaeza.com>",
"Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>",
"Ana Juaristi <anajuaristi@avanzosc.es>",
],
"depends": [
"product",
],
Expand Down
9 changes: 2 additions & 7 deletions quality_control/data/quality_control_data.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data noupdate="1">
<record id="qc_test_template_category_generic" model="qc.test.category">
<field name="name">Generic</field>
Expand All @@ -16,16 +16,11 @@
</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">
<field name="name">Quality inspection</field>
<field name="code">qc.inspection</field>
<field name="prefix">QC-</field>
<field name="padding">6</field>
</record>
</data>
</openerp>
</odoo>
2 changes: 1 addition & 1 deletion quality_control/models/product_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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):
Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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):
Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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):
Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/qc_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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


Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/qc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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


Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/qc_test_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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):
Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/qc_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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):
Expand Down
2 changes: 1 addition & 1 deletion quality_control/models/qc_trigger_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##############################################################################
# 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):
Expand Down
40 changes: 19 additions & 21 deletions quality_control/views/product_category_view.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<record model="ir.ui.view" id="product_category_qc_form_view">
<field name="name">product.category.qc</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<sheet position="inside">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree string="Quality control triggers" editable="bottom">
<field name="trigger" widget="selection" />
<field name="test" />
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
</sheet>
</field>
</record>
<record model="ir.ui.view" id="product_category_qc_form_view">
<field name="name">product.category.qc</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<group name="first" position="after">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree string="Quality control triggers" editable="bottom">
<field name="trigger" widget="selection" />
<field name="test" />
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
</group>
</field>
</record>

</data>
</openerp>
44 changes: 21 additions & 23 deletions quality_control/views/product_template_view.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>

<record model="ir.ui.view" id="product_template_qc_form_view">
<field name="name">product.template.qc</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<page string="Inventory" position="inside">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree string="Quality control triggers" editable="bottom">
<field name="trigger" widget="selection"/>
<field name="test"/>
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
</page>
</field>
</record>
<record model="ir.ui.view" id="product_template_qc_form_view">
<field name="name">product.template.qc</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[2]" position="inside">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree string="Quality control triggers" editable="bottom">
<field name="trigger" widget="selection"/>
<field name="test"/>
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
</xpath>
</field>
</record>

</data>
</openerp>
</odoo>
Loading

0 comments on commit 374ba42

Please sign in to comment.