mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[CHG] account_payment_partner: Prevent to delete bank account linked on invoices.
This commit is contained in:
committed by
Thomas Binsfeld
parent
bd84e4fada
commit
8084da145a
@@ -17,6 +17,7 @@ class AccountInvoice(models.Model):
|
||||
bank_account_required = fields.Boolean(
|
||||
related='payment_mode_id.payment_method_id.bank_account_required',
|
||||
readonly=True)
|
||||
partner_bank_id = fields.Many2one(ondelete='restrict')
|
||||
|
||||
@api.onchange('partner_id', 'company_id')
|
||||
def _onchange_partner_id(self):
|
||||
|
||||
Reference in New Issue
Block a user