5329b9a9aefc33f07e3556701509f08c4d352731
The `toPyDict` method is used to transform an object into a "python" dictionary, by returning an equivalent object with the PY_DICT object in the prototype chain. In practice, it is called everytime we create an evaluation context. This is a performance problem, since creating the context is not cheap in the case of Odoo form views: we need to iterate on all the values of the current record, checking for each changes, applying all relational operations, ... And even worse, almost all of the domains that we need to evaluate have very simple conditions, which just needs to check the value of one field. So, it is useful to make the computation of the eval context keys lazy, and this commit make sure that pyjs does not undo the lazyness of the eval context, if any. Part-of: odoo/odoo#78221
…
…
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%