Skip to content

Commit

Permalink
[IMP] rma: return product required if qty>0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Oct 30, 2024
1 parent 159ea7b commit 4c747d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rma/wizard/stock_picking_return_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/>
<field
name="return_product_id"
attrs="{'column_invisible': [('parent.create_rma', '=', False)], 'invisible': [('different_return_product', '=', False)], 'required': [('different_return_product', '=', True)]}"
attrs="{'column_invisible': [('parent.create_rma', '=', False)], 'invisible': [('different_return_product', '=', False)], 'required': [('different_return_product', '=', True), ('quantity', '>', 0)]}"
/>
<field name="different_return_product" invisible="1" />
</xpath>
Expand Down
2 changes: 1 addition & 1 deletion rma_sale/wizard/sale_order_rma_wizard_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/>
<field
name="return_product_id"
attrs="{'invisible': [('different_return_product', '=', False)], 'required': [('different_return_product', '=', True)]}"
attrs="{'invisible': [('different_return_product', '=', False)], 'required': [('different_return_product', '=', True), ('quantity', '>', 0)]}"
/>
<field name="different_return_product" invisible="1" />
</tree>
Expand Down

0 comments on commit 4c747d9

Please sign in to comment.