From 89d498dc56b29dac041ad0c525b7533b2e634ced Mon Sep 17 00:00:00 2001 From: Unai Beristain Date: Wed, 11 Dec 2024 17:34:08 +0100 Subject: [PATCH] [IMP] sale_variant_configurator: Improve Error ValueError: Wrong @depends on '_compute_price_unit' (compute method of field sale.order.line.price_unit). Dependency field 'product_attribute_ids' not found in model sale.order.line. --- sale_variant_configurator/models/sale_order.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sale_variant_configurator/models/sale_order.py b/sale_variant_configurator/models/sale_order.py index 2060d74f6..a6c66d118 100644 --- a/sale_variant_configurator/models/sale_order.py +++ b/sale_variant_configurator/models/sale_order.py @@ -74,7 +74,6 @@ def _get_product_description(self, template, product, product_attributes): res = (res or "") + "\n" + product.description_sale return res - @api.depends("product_attribute_ids") def _compute_price_unit(self): """Add the proper dependency to compute the price correctly.""" return super()._compute_price_unit()