[FIX] lunch: write function is multi

OPW 1912897

closes odoo/odoo#29281
This commit is contained in:
Lucas Perais (lpe)
2018-12-10 08:13:44 +00:00
parent 6035112043
commit 17547c1717
+1 -1
View File
@@ -198,7 +198,7 @@ class LunchOrderLine(models.Model):
res.with_context(lunch_date=res.order_id.date)._check_supplier_availibility()
return res
@api.model
@api.multi
def write(self, vals):
""" Override as an onchange would not apply if using the history buttons """
res = super(LunchOrderLine, self).write(vals)