d57e50008141881dcf3bf7b40033767ac6a9655a
In the pivot view, groups comming from many read_group are assemble to create the header hierarchies and the table. Groups returned by the read_group may be already sorted by the server using the order set on the model for instance and that order should be reflected in the header hierarchies (and in the table). It is important to keep that order since it might not be possible to recreate it in the interface. Even if possible it might not be a good idea for performance reasons. Before this commit: The groups are added in a JS object, whose keys are the group ids (when grouping on a many2one at least). Then, to generate the table, we iterate over the keys of that object, but those keys are sorted according to the numerical order (not the insertion order), because keys are kind of numeric. See https://stackoverflow.com/questions/5525795/does-javascript-guarantee-object-property-order. After this commit: Instead of a JS object, we use a Map for which the insertion order is used (official spec). Task ID: 2243416 closes odoo/odoo#50551 X-original-commit: 1a9a85c8b8d0f47c3c6f3878cd6d9401ddc3ad75 Signed-off-by: Aaron Bohy (aab) <aab@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%