[FIX] event_sale: result returned by super not propagated
Issue introduced in commit : 7c63f39db086f68fdce5b7d97bdcded74c125178 opw-1947735 closes odoo/odoo#31600 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
This commit is contained in:
@@ -73,8 +73,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.event_id = None
|
||||
self.event_ticket_id = None
|
||||
if self.product_id.event_ok:
|
||||
self.price_unit = 0.0
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user