mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user