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 Jan 17, 2023
1 parent 9ff113a commit 8f4060c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 32 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
29 changes: 15 additions & 14 deletions quality_control_oca/views/product_category_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
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 8f4060c

Please sign in to comment.