Skip to content

Commit

Permalink
[MIG] sale_order_line_description: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlokr authored and janikvonrotz committed Dec 22, 2024
1 parent fc25148 commit fe4fbe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sale_order_line_description/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit fe4fbe5

Please sign in to comment.