Skip to content

Commit

Permalink
[MIG] product_secondary_unit: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pfranck committed Nov 12, 2024
1 parent 56e5e97 commit 7b431a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion product_secondary_unit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Product Secondary Unit",
"summary": "Set a secondary unit per product",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"development_status": "Production/Stable",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
Expand Down
6 changes: 3 additions & 3 deletions product_secondary_unit/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
groups="uom.group_uom"
>
<field name="secondary_uom_ids" colspan="4" nolabel="1">
<tree editable="bottom" decoration-muted="(not active)">
<list editable="bottom" decoration-muted="(not active)">
<field name="active" widget="boolean_toggle" />
<field name="product_tmpl_id" column_invisible="1" />
<field
Expand All @@ -32,7 +32,7 @@
<field name="uom_id" />
<field name="factor" />
<field name="dependency_type" />
</tree>
</list>
</field>
</group>
</xpath>
Expand All @@ -45,7 +45,7 @@
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='secondary_uom_ids']/tree/field[@name='product_id']"
expr="//field[@name='secondary_uom_ids']/list/field[@name='product_id']"
position="attributes"
>
<attribute name="domain">[('id', '=', parent.id)]</attribute>
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odoo_test_helper

0 comments on commit 7b431a9

Please sign in to comment.