We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2347d0 commit 3c3e89eCopy full SHA for 3c3e89e
purchase_stock_ux/models/purchase_order.py
@@ -3,7 +3,7 @@
3
# directory
4
##############################################################################
5
from odoo import models, fields, api, _
6
-from odoo.tools.float_utils import float_compare
+from odoo.tools.float_utils import float_compare, float_round
7
from odoo.exceptions import UserError
8
9
@@ -97,3 +97,10 @@ def _prepare_picking(self):
97
res = super(PurchaseOrder, self)._prepare_picking()
98
res['note'] = self.internal_notes
99
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