[FIX] we need to decorate the onchange handler with @api.multi

This commit is contained in:
Holger Brunn
2017-03-27 03:11:11 +02:00
parent d1d1fa3103
commit 9b1c69681e

View File

@@ -12,6 +12,7 @@ class SaleOrder(models.Model):
'account.payment.mode', string='Payment Mode',
domain=[('payment_type', '=', 'inbound')])
@api.multi
@api.onchange('partner_id')
def onchange_partner_id(self):
res = super(SaleOrder, self).onchange_partner_id()