Skip to content

Commit

Permalink
[FIX] purchase_stock_ux: price_unit rounding in stock move
Browse files Browse the repository at this point in the history
  • Loading branch information
mav-adhoc committed Aug 14, 2024
1 parent f2347d0 commit 3c3e89e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion purchase_stock_ux/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# directory
##############################################################################
from odoo import models, fields, api, _
from odoo.tools.float_utils import float_compare
from odoo.tools.float_utils import float_compare, float_round
from odoo.exceptions import UserError


Expand Down Expand Up @@ -97,3 +97,10 @@ def _prepare_picking(self):
res = super(PurchaseOrder, self)._prepare_picking()
res['note'] = self.internal_notes
return res

def _get_stock_move_price_unit(self):
self.ensure_one()
price_unit = super(PurchaseOrder, self)._get_stock_move_price_unit()
price_unit= price_unit.with_context(round=False, round_base=False)

return price_unit

0 comments on commit 3c3e89e

Please sign in to comment.