Skip to content

Commit

Permalink
Merge PR #2453 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 Nov 12, 2024
2 parents fd59c26 + 7b728cd commit fe4576d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions purchase_order_secondary_unit/views/purchase_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<field
name="secondary_uom_id"
class="oe_inline"
domain="['|', ('product_id', '=', product_id),
domain="product_id and ['|', ('product_id', '=', product_id),
'&amp;', ('product_tmpl_id.product_variant_ids', 'in', [product_id]),
('product_id', '=', False)]"
('product_id', '=', False)] or [(0, '=', 1)]"
options="{'no_create': True}"
attrs="{'readonly': [('state', 'in', ('purchase', 'done', 'cancel'))], 'required': [('secondary_uom_qty', '!=', 0.0)]}"
/>
Expand All @@ -38,9 +38,9 @@
/>
<field
name="secondary_uom_id"
domain="['|', ('product_id', '=', product_id),
domain="product_id and ['|', ('product_id', '=', product_id),
'&amp;', ('product_tmpl_id.product_variant_ids', 'in', [product_id]),
('product_id', '=', False)]"
('product_id', '=', False)] or [(0, '=', 1)]"
options="{'no_create': True}"
attrs="{'readonly': [('state', 'in', ('purchase','done', 'cancel'))], 'required': [('secondary_uom_qty', '!=', 0.0)]}"
optional="show"
Expand Down

0 comments on commit fe4576d

Please sign in to comment.