mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Update account_payment_order/models/account_move_line.py
Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
This commit is contained in:
committed by
GitHub
parent
857e73486c
commit
7e73b8a2c6
@@ -26,7 +26,8 @@ class AccountMoveLine(models.Model):
|
||||
)
|
||||
|
||||
@api.onchange('partner_id')
|
||||
def empty_partner_bank(self):
|
||||
def _onchange_partner_id(self):
|
||||
"""Empty partner bank for avoiding inconsistencies."""
|
||||
self.partner_bank_id = None
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user