Skip to content

Commit 3c3e89e

Browse files
committed
[FIX] purchase_stock_ux: price_unit rounding in stock move
1 parent f2347d0 commit 3c3e89e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

purchase_stock_ux/models/purchase_order.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# directory
44
##############################################################################
55
from odoo import models, fields, api, _
6-
from odoo.tools.float_utils import float_compare
6+
from odoo.tools.float_utils import float_compare, float_round
77
from odoo.exceptions import UserError
88

99

@@ -97,3 +97,10 @@ def _prepare_picking(self):
9797
res = super(PurchaseOrder, self)._prepare_picking()
9898
res['note'] = self.internal_notes
9999
return res
100+
101+
def _get_stock_move_price_unit(self):
102+
self.ensure_one()
103+
price_unit = super(PurchaseOrder, self)._get_stock_move_price_unit()
104+
price_unit= price_unit.with_context(round=False, round_base=False)
105+
106+
return price_unit

0 commit comments

Comments
 (0)