mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Suggested by Stefan Rijnhart : check for the payment_mode_id before asking its bank_id.id
This commit is contained in:
committed by
Enric Tobella
parent
d7861c439d
commit
f610f5b592
@@ -48,6 +48,7 @@ class account_invoice(orm.Model):
|
||||
'payment_mode_id':
|
||||
partner.customer_payment_mode.id or False,
|
||||
'partner_bank_id':
|
||||
partner.customer_payment_mode and
|
||||
partner.customer_payment_mode.bank_id.id or False,
|
||||
})
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user