a021d627f1296fbc805d2ed7ebc3e394aea59711
Usecase to reproduce: - 10 company having 10 000 moves in state 'confirmed', 'partially_available' - Run scheduler manually (without cron) It will takes a huge amount of time. It happens because the run scheduler wizard will call run_scheduler as sudo for each company (passing company as arg). run_scheduler will try to assign move that could be reserved. However the domain in order to search move do not include the company_id and search for every company. Following upper usecase: Instead of running action_assign 10 times on 10 000 moves, it will run action_assign 10 times on 100 000 moves. Databases with multi companies and having a lot of stock will have a scheduler speedup from this patch. Thanks "Rémy Voet <ryv@odoo.com>" for finding this issue. opw-2328707 closes odoo/odoo#61183 X-original-commit: a21f9876b5b9d01380d03d638deb48cd091f26e7 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.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%