Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
15451 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 22
2279
1
thg 3 15
5269
2
thg 7 25
736
2
thg 12 24
1204
1
thg 5 23
2053