mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Take optional return value into account
This commit is contained in:
@@ -135,9 +135,9 @@ class AccountInvoice(orm.Model):
|
||||
Maybe apply a similar trick when overriding the buttons' 'states'
|
||||
attributes in the form view, manipulating the xml in fields_view_get().
|
||||
"""
|
||||
super(AccountInvoice, self)._register_hook(cr)
|
||||
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