mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[11.0][FIX] account_payment_partner: onchange if more than one bank
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Account Payment Partner',
|
||||
'version': '11.0.1.2.0',
|
||||
'version': '11.0.1.2.1',
|
||||
'category': 'Banking addons',
|
||||
'license': 'AGPL-3',
|
||||
'summary': 'Adds payment mode on partners and invoices',
|
||||
|
||||
@@ -36,7 +36,7 @@ class AccountInvoice(models.Model):
|
||||
self.partner_bank_id = \
|
||||
self.commercial_partner_id.bank_ids.filtered(
|
||||
lambda b: b.company_id == self.company_id or not
|
||||
b.company_id)
|
||||
b.company_id)[:1]
|
||||
else:
|
||||
self.partner_bank_id = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user