I am having trouble with the quality checks of products that have been through the manufacturing section on Odoo. I created a quality control point at the end of a manufacturing process that is a measuring type, but I have modified it to have multiple measuring dimensions (length, width, etc). This functions fine in the pop up window my issue is that Odoo does not register the new parameters of the dimensions and therefore any dimension that is recorded (even if its the right one) come up as failed. I did change the code in both quality.check.form and quality.point.form in order to keep them the same, I'm not sure if I need to modify anything else.
Code for check is below, changed norm to x_largo & x_ancho
<?xml version="1.0"?>
<form string="Quality Checks">
<h2>
<field name="product_id" readonly="1" options="{'no_open': True}"/>
</h2>
<field name="note" readonly="1"/>
<field name="team_id" invisible="1"/>
<field name="picking_id" invisible="1"/>
<field name="point_id" invisible="1"/>
<field name="test_type" invisible="1"/>
<field name="measure_success" invisible="0"/>
<group>
<group>
<label for="x_largo" attrs="{'invisible': [('test_type', '!=', 'measure')]}"/>
<div attrs="{'invisible': [('test_type', '!=', 'measure')]}" class="o_row">
<field name="x_largo" attrs="{'required': [('test_type', '=', 'measure')]}"/>
<field name="x_largo_unit"/>
</div>
<label for="x_ancho" attrs="{'invisible': [('test_type', '!=', 'measure')]}"/>
<div attrs="{'invisible': [('test_type', '!=', 'measure')]}" class="o_row">
<field name="x_ancho" attrs="{'required': [('test_type', '=', 'measure')]}"/>
<field name="x_ancho_unit"/>
</div>
</group>
</group>
<footer>
<button name="do_measure" type="object" class="btn-primary" string="Validate" attrs="{'invisible': [('test_type', '!=', 'measure')]}"/>
<button name="do_pass" type="object" class="btn-primary" string="Pass" attrs="{'invisible': [('test_type', '=', 'measure')]}"/>
<button name="do_fail" type="object" class="btn-primary" string="Fail" attrs="{'invisible': [('test_type', '=', 'measure')]}"/>
<button string="Cancel" class="btn-default" special="cancel"/>
</footer>
</form>
Hi Daniel, I'm not programmer but simply have interest on the development of Odoo Quality Control module from a Quality Manager point of view. And it seems less discussion of this topic in the forum and you have such expertise so let's keep in touch.