December 2018
Beginner to intermediate
404 pages
10h 14m
English
The data can also be seen in a pivot table, a dynamic analysis matrix. For this, we have the pivot view.
Data aggregations are only available for database stored fields. We want to use the num_books field to present some statistics on the number of borrowed books. It's a computed field and isn't being stored right now. To have it available for these views, we need to first have it stored in the database, by adding the store=True attribute:
num_books = fields.Integer( compute='_compute_num_books', ...
Read now
Unlock full access