I want to create a class which inherits from account.invoice in order to modify the _amount_all method.
I already create this method in my module:
class account_invoice(osv.osv):
_inherit = 'account.invoice'
def _amount_all(self, cr, uid, ids, name, args, context=None):
res = super(account_invoice, self)._amount_all(cr, uid, ids, name, args, context)
# My operations
return res
But when installed, my method is never called.
Is there another way for doing this inheritance?