Skip to content

Commit 444f5da

Browse files
QuocDuong1306OCA-git-bot
authored andcommitted
[IMP] sell_only_by_packaging: convert qty should use product rounding
1 parent eb82866 commit 444f5da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sell_only_by_packaging/models/product_product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _convert_packaging_qty(self, qty, uom, packaging):
5252
and float_compare(
5353
qty / q,
5454
float_round(qty / q, precision_rounding=1.0),
55-
precision_rounding=0.001,
55+
precision_rounding=uom.rounding,
5656
)
5757
!= 0
5858
):
@@ -62,7 +62,7 @@ def _convert_packaging_qty(self, qty, uom, packaging):
6262
float_compare(
6363
qty,
6464
0.0,
65-
precision_rounding=0.001,
65+
precision_rounding=uom.rounding,
6666
)
6767
< 0
6868
):

0 commit comments

Comments
 (0)