Skip to content

Commit

Permalink
fixup! [fix] s_order_line_pkg_qty: safe default for pkg qty precision
Browse files Browse the repository at this point in the history
  • Loading branch information
carmenbianca committed Jun 16, 2023
1 parent e4304d1 commit 8fe1077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_line_packaging_qty/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _compute_product_packaging_qty(self):
# that are already linked to a sale order.
# If by chance the product is removed (yes, you can do it)
# this computation will be broken w/out this default.
precision = sol.product_packaging.product_uom_id.rounding or 0.01
precision = sol.product_packaging_id.product_uom_id.rounding or 0.01
qty_mod = float_round(
product_qty % sol.product_packaging_id.qty,
precision_rounding=precision,
Expand Down

0 comments on commit 8fe1077

Please sign in to comment.