Skip to content

Commit

Permalink
[IMP] sale_order_line_packaging_qty: Remove unnecessary test
Browse files Browse the repository at this point in the history
This case is impossible because of
product.constraint_product_packaging_positive_qty.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Jun 16, 2023
1 parent 8fe1077 commit 6f07edd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sale_order_line_packaging_qty/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ def _inverse_product_packaging_qty(self):
"of said package."
)
)
if sol.product_packaging_id and sol.product_packaging_id.qty == 0:
raise UserError(
_("Please select a packaging with a quantity bigger than 0")
)
if sol.product_packaging_id and sol.product_packaging_qty:
sol.write(sol._prepare_product_packaging_qty_values())

Expand Down

0 comments on commit 6f07edd

Please sign in to comment.