Tuesday, January 3, 2023
1 change · master
New functionality added to Odoo
Grid-based screens, including timesheets, can now display sample data when there is no real data available. This helps users understand how the view works and makes empty screens more useful during setup or evaluation.
Original PR description
[IMP] {web, timesheet}_grid: add sample data mode
This commit introduces the sample data feature for the Grid View.
Although this isn't a good practice to duplicate logic in the code,
there was unfortunately no other choice at the time being. The only
solution being to rewrite the Gird View in order to bring more
presentation logic at the client side, which is not a possibility
at this time.
task-2702636
see also:
- https://github.com/odoo/documentation/pull/1789