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
Pedro M. Baeza
parent
8ac6afeb0e
commit
4eb6ed3498
@@ -16,6 +16,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