Merge pull request #351 from hbrunn/9.0-account_payment_sale-fix_onchange

[FIX] we need to decorate the onchange handler with @api.multi
This commit is contained in:
Pedro M. Baeza
2017-03-27 16:41:18 +02:00
committed by GitHub

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()