Skip to content

Commit

Permalink
Merge PR #1948 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Feb 22, 2024
2 parents 66767b9 + b1b20cb commit 5c93694
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions stock_secondary_unit/views/stock_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
<field name="groups_id" eval="[(4, ref('uom.group_uom'))]" />
<field name="arch" type="xml">
<field name="product_uom_qty" position="before">
<field name="secondary_uom_qty" />
<field
name="secondary_uom_qty"
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
force_save="1"
/>
<field
name="secondary_uom_id"
domain="['|', ('product_id', '=', product_id),
Expand All @@ -31,7 +35,11 @@
<field name="groups_id" eval="[(4, ref('uom.group_uom'))]" />
<field name="arch" type="xml">
<field name="product_uom_qty" position="before">
<field name="secondary_uom_qty" />
<field
name="secondary_uom_qty"
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
force_save="1"
/>
<field
name="secondary_uom_id"
domain="['|', ('product_id', '=', product_id),
Expand Down

0 comments on commit 5c93694

Please sign in to comment.