8f379d8ae57958dac67d52be713dd59b9c57b9fc
Odoo charts have a specific need of dataSources for their runtime data (in oppostion to standard graphs). In order to link the chart with its datasource, we injected the chart id inside its definition in order to be able to fetch the corresponding datasource. Unfortunately, this approach require that we can access the chartId from anywhere which is unfortunately not the case when we copy/cut/paste a chart. The current implementation would copy the chart while keeping a reference to the same datasource, thereby keeping the same data and be submitted to the same filters as the original chart dataSource. Note that a chart should not be aware of its own id; that is, its place in the mapping of a plugin. This commit changes the approach to set the dataSource inside the chart directly through a method only available on OdooChart instances. This problem would also arise on sheet duplication but was due to a problem in the library itself. task 2998207 closes odoo/odoo#101660 X-original-commit: 47f7cc08bec749301001c6c4567cafbcea8bd552 Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com> Signed-off-by: Rémi Rahir (rar) <rar@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%