diff --git a/stock_currency_valuation/models/stock_move.py b/stock_currency_valuation/models/stock_move.py index 3ebf3d6b5..bab1e2546 100644 --- a/stock_currency_valuation/models/stock_move.py +++ b/stock_currency_valuation/models/stock_move.py @@ -13,6 +13,8 @@ def _get_price_unit(self): self.ensure_one() price_unit = super()._get_price_unit() precision = self.env['decimal.precision'].precision_get('Product Price') + if float_is_zero(price_unit, precision): + return price_unit if self.picking_id.currency_rate and self.purchase_line_id.order_id.currency_id == self.picking_id.valuation_currency_id: price_unit = self.purchase_line_id.price_unit / self.picking_id.currency_rate return price_unit if not float_is_zero(price_unit, precision) or self._should_force_price_unit() else self.product_id.standard_price