e02da4224a3e9a9a84d3dcdd1fbc986543c82275
This commit adds an option to _updateConfig which allows to specify a callback to apply the new values obtained from the updated config e.g. 1) a dynamic list updates its offset (calls _updateConfig) 2) a web_search_read is done and returns some records 3) the new config (with the new offset) is applied on this.config 4) record datapoints are created for the returned records and set on this.records of the list Before this commit, step 3) was done in _updateConfig, and step 4) was done by the called of _updateConfig. As _updateConfig is async, step 4) was actually done in the next microTick after 3). As a consequence, those two mutations could trigger owl renderings. To avoid this situation, _updateConfig now takes a "commit" function, which allows it to execute 3) and 4) in the same tick. Part of~3179751 Part-of: odoo/odoo#114024
…
…
…
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%