I want to override a function ( get_account_lines ) wish is placed in sale's module in a new custom module and whene i calledthe function only the original function was called , there is my code :
class ReportFinancialInherit(models.AbstractModel):
_inherit = 'report.account.report_financial'
def get_account_lines(self, data):
super(ReportFinancial, self).get_account_lines(data)
lines = []
vals = {
'name': 'CAPITAUX PROPRES',
'balance': False ,
'balance_passe':False,
'type': 'report',
'level': 1,
'account_type': False, #used to underline the financial report balances
}
lines.append(vals)
return lines