diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py index 6f0c4e7a351..1e4ac7ffbe1 100644 --- a/addons/stock_account/models/product.py +++ b/addons/stock_account/models/product.py @@ -102,7 +102,7 @@ class ProductProduct(models.Model): product_accounts = {product.id: product.product_tmpl_id.get_product_accounts() for product in self} for location in locations: - for product in self.with_context(location=location.id, compute_child=False): + for product in self.with_context(location=location.id, compute_child=False).filtered(lambda r: r.valuation == 'real_time'): diff = product.standard_price - new_price if float_is_zero(diff, precision_rounding=product.currency_id.rounding): raise UserError(_("No difference between standard price and new price!"))