Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][FIX] purchase_order_secondary_unit: Error when user try to select a secondary uom without product in sale order line #2453

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading