diff --git a/addons/stock_account/models/stock_move.py b/addons/stock_account/models/stock_move.py index dc5a95e8415..d6154505952 100644 --- a/addons/stock_account/models/stock_move.py +++ b/addons/stock_account/models/stock_move.py @@ -32,10 +32,11 @@ class StockMove(models.Model): """ Returns the unit price to value this stock move """ self.ensure_one() price_unit = self.price_unit + precision = self.env['decimal.precision'].precision_get('Product Price') # If the move is a return, use the original move's price unit. if self.origin_returned_move_id and self.origin_returned_move_id.sudo().stock_valuation_layer_ids: price_unit = self.origin_returned_move_id.sudo().stock_valuation_layer_ids[-1].unit_cost - return not self.company_id.currency_id.is_zero(price_unit) and price_unit or self.product_id.standard_price + return not float_is_zero(price_unit, precision) and price_unit or self.product_id.standard_price @api.model def _get_valued_types(self):