Skip to Content
Menú
This question has been flagged
1 Respondre
15444 Vistes

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:

Modell: hr_timesheet_sheet.sheet

Field: total_timesheet

(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.)

Avatar
Descartar
Best Answer

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),

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 22
2277
1
de març 15
5260
2
de jul. 25
713
2
de des. 24
1188
1
de maig 23
2045