跳至内容
菜单
此问题已终结
1 回复
15505 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
3月 22
2340
1
3月 15
5312
2
7月 25
761
2
12月 24
1261
1
5月 23
2078