bc56084355c21a185f49c06f42762ebaedd87fee
Before this commit, the pivot's dataSources were managed by the core plugin `PivotCorePlugin`. This didn't make sense since dataSources aren't core data: - they are neither exported nor imported - they can be different for each user (their ids were generated via uuidv4 at import) - managing them required to handle local command in the core plugin Moved the dataSources management to the UI plugin `PivotUIPlugin` and moved the relevant getters inside this plugin. Changed the ids of the dataSources to be the same as the pivot's id + a prefix, to avoid having to maintain a mapping `pivotId` <=> `dataSourceId` . This commit also removes the dataSourceId from the `INSERT_PIVOT` command, which have no place here since this is a core command and the dataSources are now a pure UI concept. This is slighly more tricky than for lists, because the datasource need to be loaded before the `INSERT_PIVOT` command to fetch the table structure. The component dispatching the command need to make sure it creates a dataSource with the id given by the getter `getPivotDataSourceId`, or else the dataSource will be loaded twice. Task: 3293491 Part-of: odoo/odoo#120136
…
…
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%