Since a lot of fields do not show any subtotals (SUM) if they are "grouped by" i would like to know how i can/should set the store=true parameter for existing fields of OpenERP?!?
eg. for the field:
(If i group the treeview of timesheets to validate by Employees i can not see the subtotals of total_timesheet in the treeview by employee.)
copy both function fields and its function to your module and then add store=True e.g
'total_timesheet': fields.function(_total, method=True, string='Total Timesheet', multi="_total"), 'total_timesheet': fields.function(_total, method=True, string='Total Timesheet', multi="_total", store=True),
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/19/13, 5:59 AM|
|Seen: 1628 times|
|Last updated: 3/16/15, 8:10 AM|