Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
8becd76
Modulos de calidad sin migrar
oihane Aug 22, 2014
3d3b8d7
quality_control * PEP8 * some fixing * translations
oihane Aug 22, 2014
7070d85
quality_control * PEP8 * Travis * Size in field (deprecated)
pedrobaeza Sep 28, 2014
83e4eeb
no msg
alfredoavanzosc Oct 9, 2014
146c7f5
quality_control: Code enhanced
pedrobaeza Oct 9, 2014
bc6ac16
no msg
alfredoavanzosc Oct 10, 2014
6829293
quality_control: Some improvement
pedrobaeza Oct 14, 2014
50bb085
Flake8 failing fixed
oihane Oct 20, 2014
e1d59fa
no msg
alfredoavanzosc Oct 21, 2014
87c42d8
<quality_control> deleted constraint
oihane Oct 24, 2014
e9f5602
no msg
alfredoavanzosc Nov 6, 2014
97b2663
quality_control: * Pylint fixing * PEP8 fixing
oihane Nov 13, 2014
8afe545
no msg
alfredoavanzosc Nov 27, 2014
15606f5
quality_control: * Made line tree editable on test templates
oihane Dec 2, 2014
d0aab66
quality_control: Total refactorization with new API, README files, an…
pedrobaeza Dec 10, 2014
31839b7
New module <quality_control_hr> closes #662 * Changes in access rules…
oihane Feb 13, 2015
36cd4c7
quality_control * Fix wizard set test
pedrobaeza Mar 16, 2015
98afdf9
Fixed email address
oihane Apr 28, 2015
59d519a
changed default references of fields.Datetime.now() to fields.Datetim…
ejans Jul 16, 2015
7d7a6cb
Slovene translations added
sysadminmatmoz Aug 1, 2015
a06b359
quality_control: * Changed permissions
oihane Aug 12, 2015
eefffe4
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
46a7ff1
quality_control_*: Make use of qty field
pedrobaeza Nov 14, 2015
5f0c136
OCA Transbot updated translations from Transifex
oca-transbot Nov 30, 2015
b66bb64
quality_control: deleting qc.inspection does not delete its lines fixed
oihane Apr 28, 2016
28162b5
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2016
ebf9a4e
remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
9e1b1f9
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
64b2f02
quality_control: decimal precision configurable
Feb 8, 2017
0808777
OCA Transbot updated translations from Transifex
oca-transbot Feb 11, 2017
f1f6267
quality_control: approving inspections only quality control managers
Feb 28, 2017
91050e8
OCA Transbot updated translations from Transifex
oca-transbot Mar 18, 2017
b0f18e3
[9.0][MIG] quality_control
LoisRForgeFlow May 24, 2017
5e15daf
[9.0][FIX] quality_control: not take into account inactivated tests t…
Jun 7, 2017
0a21b25
headers
LoisRForgeFlow Jun 27, 2017
3104573
[IMP] quality_control: show action_cancel button in inspections even …
Jul 3, 2017
d8f5463
[FIX] quality_control: Fix TypeError on new test category (#193)
zamberjo Nov 18, 2017
a0e0699
[9.0][FIX] quality_control: use odoo tag on views
LoisRForgeFlow Nov 21, 2017
82839bc
[MIG] quality_control: Migration to 10.0
SimoRubi Nov 21, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions quality_control/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

===============
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
or any other area of the company.

Configuration
=============

* Question: The thing to be checked. We have two types of questions:

* Qualitative: The result is a description, color, yes, no...

* Quantitative: The result must be within a range.

* Possible values: The values chosen in qualitative questions.

* Test: The set of questions to be used in inspections.

* Once these values are set, we define the inspection.

We have a *generic* test that can be applied to any model: shipments,
invoices or product, or a *test related*, making it specific to a particular
product and that eg apply whenever food is sold or when creating a batch.

Once these parameters are set, we can just pass the test. We create a
new inspection, selecting a relationship with the model (sale, stock move...),
and pressing "Select test" button to choose the test to pass. Then, you must
fill the lines depending on the chosen test.

The complete inspection workflow is:

Draft -> Confirmed -> Success
|
| -> Failure (Pending approval) -> Approved

Based on the nan_quality_control_* modules from NaN·tic.


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/10.0


Known issues / Roadmap
======================

* Make translatable the trigger name.


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 smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.

Contributors
------------
* Pedro M. Baeza <pedro.baeza@serviciobaeza.com>
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Ana Juaristi <anajuaristi@avanzosc.es>
* Lois Rilo <lois.rilo@eficent.com>
* Simone Rubino <simone.rubino@agilebg.com>

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

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
5 changes: 5 additions & 0 deletions quality_control/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
41 changes: 41 additions & 0 deletions quality_control/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# -*- 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.
# Copyright 2017 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Quality control",
"version": "10.0.1.0.0",
"category": "Quality control",
"license": "AGPL-3",
"author": "OdooMRP team, "
"AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Eficent, "
"Agile Business Group, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture/tree/10.0/quality_control",
"depends": [
"product",
],
"data": [
"data/quality_control_data.xml",
"security/quality_control_security.xml",
"security/ir.model.access.csv",
"wizard/qc_test_wizard_view.xml",
"views/qc_menus.xml",
"views/qc_inspection_view.xml",
"views/qc_test_category_view.xml",
"views/qc_test_view.xml",
"views/qc_trigger_view.xml",
"views/product_template_view.xml",
"views/product_category_view.xml",
],
"demo": [
"demo/quality_control_demo.xml",
],
"installable": True,
}
32 changes: 32 additions & 0 deletions quality_control/data/quality_control_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="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.
Copyright 2017 Simone Rubino - Agile Business Group
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="1">
<record id="qc_test_template_category_generic" model="qc.test.category">
<field name="name">Generic</field>
</record>

<record id="qc_test_template_category_referenced" model="qc.test.category">
<field name="name">Referenced</field>
</record>

<record forcecreate="True" id="decimal_quality_control" model="decimal.precision">
<field name="name">Quality Control</field>
<field name="digits">5</field>
</record>
</data>

<data>
<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>
</odoo>
39 changes: 39 additions & 0 deletions quality_control/demo/quality_control_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record model="qc.test" id="qc_test_1">
<field name="name">Generic Test (demo)</field>
<field name="type">generic</field>
<field name="active" eval="True" />
<field name="category" ref="qc_test_template_category_generic" />
</record>

<record model="qc.test.question" id="qc_test_question_1">
<field name="name">Overall quality</field>
<field name="test" ref="qc_test_1" />
<field name="type">qualitative</field>
</record>

<record model="qc.test.question.value" id="qc_test_question_value_1">
<field name="name">Good</field>
<field name="ok" eval="True" />
<field name="test_line" ref="qc_test_question_1" />
</record>

<record model="qc.test.question.value" id="qc_test_question_value_2">
<field name="name">Bad</field>
<field name="ok" eval="False" />
<field name="test_line" ref="qc_test_question_1" />
</record>

<record model="qc.test.question" id="qc_test_question_2">
<field name="name">Size</field>
<field name="test" ref="qc_test_1" />
<field name="type">quantitative</field>
<field name="min_value" eval="1.0" />
<field name="max_value" eval="10.0" />
<field name="uom_id" ref="product.product_uom_unit" />
</record>

</data>
</odoo>
Loading