83c2e986784de3c7fb2d5d4cd3fa9fe1787ba413
When a snippet option uses a m2m widget, the domain used for the internal m2o widget which allows to select records evolves to receive the subdomain `['id', 'not in', <selected-ids>]` with `<selected-ids>` indicating the m2m records which are already selected. M2o rpc are cached... based on the whole query object from which they are created. The domain is part of that query object. Both those concepts actually conflicted: the initial RPC when no ID is selected was made with no subdomain, while the subsequent RPC when no ID is selected were made with the `['id', 'not in', []]` subdomain. The cache system did treat the resulting domains as different requests. Now we avoid adding the useless `['id', 'not in', []]` subdomain as it should already have been done without a cache system in place. Note: this was particularly visible because all main snippets have the "Conditional Visibility" option which uses 3 m2m widgets. At each drop of such main snippet in the page, the option is created and the 3 m2m widgets made their RPC with the initial domain. Then on click on the snippet, a new RPC was made with the problematic subdomain, making the first click on snippets being needlessly slower. In the future, the system should be further improved to not require those RPC on initial drop and clicks, especially as the "Conditional Visibility" m2m widgets are hidden by default. This fix focuses on fixing the generic m2m widgets. X-original-commit: 017a468547eafa3e34f584379d3f05b3ed1db487 Part-of: odoo/odoo#102800
…
…
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%