b200b708ead5f9e42932b2853e4e8beecbfddc8f
__Current behavior before commit:__ `_compute_meeting` computes the meetings linked to the children of the partners in `self`. To do so, it first retrieves all children partners of `self`, then it loops through all of them to apply the meetings to the parents. This way of doing is inefficient because it is useless to iterate over the children that don't have any meetings. __Description of the fix:__ Loop only through the partners that have a meetings instead of all children partners. Improve `test_meeting_count` to test the case where only the child partner has a meeting but the parent has initially none. This test improvement is a forward port of [#144575][1]. __Benchmark:__ | len(all_partners) | w/o fix | with fix | | ----------------- | ------- | -------- | | 1k | 32 ms | 14 ms | | 100k | 1500 ms | 800 ms | opw-3511371 [1]: https://github.com/odoo/odoo/pull/144575 closes odoo/odoo#146381 X-original-commit: e35949cdd09b4312a60383b79290008e78768b64 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Julien Launois (jula) <jula@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%