Skip to content

Commit

Permalink
[12.0][FIX] sale_order_lot_selection: call super
Browse files Browse the repository at this point in the history
Inherited method should return value from super
  • Loading branch information
diggy128 authored and OCA-git-bot committed Mar 18, 2024
1 parent b99bbae commit 4780f6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sale_order_lot_selection/models/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class SaleOrderLine(models.Model):
@api.multi
@api.onchange('product_id')
def product_id_change(self):
super(SaleOrderLine, self).product_id_change()
result = super(SaleOrderLine, self).product_id_change()
self.lot_id = False
return result

@api.onchange('product_id')
def _onchange_product_id_set_lot_domain(self):
Expand Down

0 comments on commit 4780f6a

Please sign in to comment.