Hello all,
How could I display somewhere on this tree view the difference between the debit and the credit.
Here, I would want somewhere displayed : 1524,58 - 9,75 = 1514,82 $.
Possible???
Thanks
UPDATE #1
I have used this code finally :
class account_move_line(osv.osv):
_inherit = "account.move.line"
#_logger.error("result_calcasdgfas dfsdfg sdfg asdfg sdf")
def _result_calc(self, cr, uid, ids, name, arg, context=None):
res = {}
for aml in self.browse(cr, uid, ids, context=context):
res[aml.id] = aml.credit - aml.debit
return res
_columns = {
'result': fields.function(_result_calc, type='float', string='Total result')
}