61307c162d54ae5ce12cb5844b201513c7ccd604
Before this commit, all python expressions in js were evaluated with the same evalContext. Unfortunately, this is not possible for expressions based on an x2many. The value of the x2many depends on whether the expression will be sent to the server or not. All expressions that are only used client-side, such as modifiers (readonly, required, invisible), decorations, etc., must take virtual records into account. For example, I define a button that must be visible when I have at least one record in my x2many. So when I create my virtual record, I want the button to become visible and not have to wait for the record to be actually created. For expressions sent to the server, such as domains and contexts, we don't want them to take virtual records into account, as these are not known by the server and could cause crashes. Solution: We have evalContext for expressions sent to the server and evalContextWithVirtualIds for client-side expressions. closes odoo/odoo#133718 Related: odoo/enterprise#46604 Signed-off-by: Aaron Bohy (aab) <aab@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%