Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
15612 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 22
2428
1
bře 15
5389
2
čvc 25
833
2
pro 24
1349
1
kvě 23
2138