Hi, I have written a module where there is a list of expenses. It contains 1.name of expense 2.cost
I want to take a variable and add all expenses into it and display it. How to do that?
-----------------------------
Here is my py code:
class expenditure_records(osv.Model):
_name="expenditure.records"
_columns={
'name':fields.char('Expense name'),
'cost':fields.float('Expenditure cost'),
'expense_id':fields.many2one('expenditure','Expense ID'),
}