Skip to content

Commit

Permalink
[MIG] quality_control_oca: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mymage committed Dec 26, 2022
1 parent dd167bb commit 3778e00
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion quality_control_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
31 changes: 16 additions & 15 deletions quality_control_oca/views/product_category_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@
<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>
<t groups="group_quality_control_user">
<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>
</group>
</group>
</t>
</field>
</record>
</odoo>
32 changes: 15 additions & 17 deletions quality_control_oca/views/product_template_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3778e00

Please sign in to comment.