d22928b7eda0c2c547798d99c9308010b7fd357b
When some true groups have been fetched, the sample server use them to construct the value returned by _mockWebReadGroup, i.e. construct some fake groups. It also populate those groups by assigning them some previously created fake records. It turns out that those fake records did not have the right type when the first group by is a date/datetime field. The record values created (during the group assignation) for that field were luxon.DateTime instances instead of strings like "2022-12-15". This was the root cause of the following problem. Have a kanban view in sample mode and grouped on a date field, then switch to a pivot view grouped on the same date field. A crash occures. That crash is linked to the above mentionned problem in the following way: - open the kanban view (with sample="1" in its arch) - some existing groups are fetched by the relation model but no records exist - the kanban view switches to sample mode and some fake invalid records are created in the sample server (the invalidity of records do not cause visible problems at that time) - switch to the pivot view - the sample server is reused but existingGroups is set to be null, so that _mockWebReadGroup uses the invalid records to create the groups it needs. The crash occures at that step. Forward-Port-Of:: cdd583f74f51086c8d5f243a2a761622229ccc26 closes odoo/odoo#109031 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%