diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-06-22 14:26:31 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-10-06 14:48:10 +0000 |
| commit | 973a2998666813ca4fbe90f1b486c1b18091c4e7 (patch) | |
| tree | 1c5b1cb9c1f3a9d53e8f952a16afa1dfe2da7730 /addons/l10n_eu_service | |
| parent | 950dd491bc4b680e0bcfab83815313e909a3c282 (diff) | |
[IMP] crm: improve handle_salesmen_assignment performances
Handle salesmen allows to assign responsible to leads using a round robin like
algorithm. Currently a write on each lead is done to update its team and
responsible, even if number of leads is far greater than number of available
users to assign.
Current implementation can be simplified by doing one write per sales person
to assign on its batch of leads, or a single write if no salesmen has to be
assigned.
Performance counter on a mass convert wizard on 50 leads show that we gain
about 9% of queries (125 on 1471) with this simple optimization.
Task ID-2351604
PR #59084
closes odoo/odoo#59100
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/l10n_eu_service')
0 files changed, 0 insertions, 0 deletions
