e666694e2af6c48db8989f76c80a4b6efb20955c
It appears that if you update a record more than once in the same PostgreSQL transaction, PostgreSQL is going to re-check all the constraints on the table. ** THIS IS THE PART WHERE THE BLACK MAGIC HAPPENS ** We combine the setting of the default value of stock.move.unit_factor in the same UPDATE query to avoid the constraint re-check; it saves approximately 60% of the SQL running time in my case. ** ... AND NOW YOU CAN SAY: WHAT THE F...?! ** Thanks to @rco-odoo for the tip; he knows it from the wise @nseinlet. X-original-commit: 8e47e2f605309c8ed0d5509f7bb070528d8f32c4
…
…
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%