[MIG] quality_control_oca: Migration to 16.0

This commit is contained in:
Stefano Consolaro
2022-12-26 14:19:12 +01:00
committed by Antoni Marroig Campomar
parent 386c6732be
commit 8426e612f4
3 changed files with 31 additions and 32 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Quality Control OCA",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Quality Control",
"license": "AGPL-3",
"summary": "Generic infrastructure for quality tests.",

View File

@@ -10,22 +10,23 @@
<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="groups_id" eval="[(4, ref('group_quality_control_user'))]" />
<field name="arch" type="xml">
<group name="first" position="after">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree editable="bottom">
<field
name="trigger"
options="{'no_create': True, 'no_edit': True, 'no_open': True}"
/>
<field name="test" />
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
<t groups="group_quality_control_user">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree editable="bottom">
<field
name="trigger"
options="{'no_create': True, 'no_edit': True, 'no_open': True}"
/>
<field name="test" />
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
</t>
</group>
</field>
</record>

View File

@@ -10,25 +10,23 @@
<field name="name">product.template.common.qc</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field
name="groups_id"
eval="[(4, ref('quality_control_oca.group_quality_control_user'))]"
/>
<field name="arch" type="xml">
<page name="inventory" position="inside">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree editable="bottom">
<field
name="trigger"
options="{'no_create': True, 'no_edit': True, 'no_open': True}"
/>
<field name="test" />
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
<t groups="quality_control_oca.group_quality_control_user">
<group name="qc" string="Quality control">
<field name="qc_triggers" nolabel="1">
<tree editable="bottom">
<field
name="trigger"
options="{'no_create': True, 'no_edit': True, 'no_open': True}"
/>
<field name="test" />
<field name="user" />
<field name="partners" widget="many2many_tags" />
</tree>
</field>
</group>
</t>
</page>
</field>
</record>