Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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),
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/19/13, 5:59 AM|
|Seen: 3181 times|
|Last updated: 3/16/15, 8:10 AM|