diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py index 6707c437c68..bb04c02903d 100644 --- a/addons/stock_account/models/product.py +++ b/addons/stock_account/models/product.py @@ -201,8 +201,8 @@ class ProductProduct(models.Model): @api.model def _get_anglo_saxon_price_unit(self, uom=False): price = self.standard_price - if not uom or self.uom_id.id == uom.id: - return price + if not self or not uom or self.uom_id.id == uom.id: + return price or 0.0 return self.uom_id._compute_price(price, uom)