mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #108 from StefanRijnhart/8.0-fix_invoice_state_selection
[FIX] Don't break inheritance chain
This commit is contained in:
@@ -137,6 +137,7 @@ class AccountInvoice(orm.Model):
|
||||
"""
|
||||
self._columns['state'].selection.append(
|
||||
('debit_denied', 'Debit denied'))
|
||||
return super(AccountInvoice, self)._register_hook(cr)
|
||||
|
||||
def action_debit_denied(self, cr, uid, ids, context=None):
|
||||
for invoice_id in ids:
|
||||
|
||||
Reference in New Issue
Block a user