c36f9c184d69bbb7cf392e96bce4e46a35ffde64
Various registration side updates depends on its state: notably communication schedulers and lead rules management. However event_sale changes the 'state' field from a classic selection field to a computed one, introducing links with sale order and sale order lines as well as payment state computation. Currently code leads to a double update of state when creating a new registration, which causes communication scheduler to be called twice and create additional queries. This commit tries to avoid this by updating value of state only once, instead of setting everything to draft then updating to another value afterwards. This avoids notably schedulers to be triggered or called twice in the same transaction. Task-3764894: Event: Allow using cron triggers for communication Part of Task-3084943: Event: Improve communication scheduler scalability Part-of: odoo/odoo#155777
…
…
…
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%