[FIX] Don't break inheritance chain

This commit is contained in:
Stefan Rijnhart
2015-01-22 10:08:18 +01:00
parent 9dedd1292c
commit f715e5dcb2

View File

@@ -135,6 +135,7 @@ 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'))