f012e337698c89e4c35b3a75243b26e3823e757e
We explicitly discourage a compute method used for both stored and non-stored fields, because it may be unexpectedly update the database. Indeed, we don't expect the computation of a non-stored field to update the database. Allowing this kind of compute method makes reasoning about readonly code much more difficult, and would prevent readonly transactions with such fields. For instance, consider a compute method for both fields F (non-stored) and G (stored), and assume that none of those fields are in cache. Whenever F is accessed, the compute method is invoked, and both fields are assigned, which potentially generates an SQL update for field G. This is problematic if we require the current transaction to be readonly. Part-of: odoo/odoo#98565
…
…
…
…
…
…
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%