diff --git a/sale_order_line_description/models/sale_order_line.py b/sale_order_line_description/models/sale_order_line.py index 77e18c9b45f..a41fcbf2553 100644 --- a/sale_order_line_description/models/sale_order_line.py +++ b/sale_order_line_description/models/sale_order_line.py @@ -7,9 +7,9 @@ class SaleOrderLine(models.Model): _inherit = "sale.order.line" - @api.onchange("product_id") - def product_id_change(self): - res = super(SaleOrderLine, self).product_id_change() + @api.depends("product_id") + def _compute_name(self): + res = super()._compute_name() if not self.product_id: # pragma: no cover return res if (