-
- Downloads
[MERGE] crm: fix randomly failing tests about query counters and assign domain
PURPOSE
Fix recently added lead assignment tests, notably about query counters
and random behavior of lead merge.
SPECIFICATIONS
Split performance tests from unit tests. Performance tests should be
reproducible. Currently there are too much varying query counters.
Fix lead merge process done during assign. As duplicate leads are merged
final opportunity could not fit team domain anymore. This is a side effect
of lead deduplication. In this case this is linked to priority field that is set
to the value of the "final" opportunity, whatever the value of other leads
merged into it. We think that priority is a field that should be managed
more carefully. We choose to set it as the highest value found in leads
merged.
LINKS
Task ID-2446759 (lead merge priority field management)
Task ID-2446883 (query counters fix)
PR odoo/odoo#65016
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/crm/models/crm_lead.py 72 additions, 60 deletionsaddons/crm/models/crm_lead.py
- addons/crm/tests/__init__.py 1 addition, 0 deletionsaddons/crm/tests/__init__.py
- addons/crm/tests/common.py 81 additions, 2 deletionsaddons/crm/tests/common.py
- addons/crm/tests/test_crm_lead_assignment.py 21 additions, 14 deletionsaddons/crm/tests/test_crm_lead_assignment.py
- addons/crm/tests/test_crm_lead_convert_mass.py 2 additions, 2 deletionsaddons/crm/tests/test_crm_lead_convert_mass.py
- addons/crm/tests/test_crm_lead_merge.py 19 additions, 0 deletionsaddons/crm/tests/test_crm_lead_merge.py
- addons/crm/tests/test_performances.py 188 additions, 0 deletionsaddons/crm/tests/test_performances.py
- addons/website_crm/models/crm_lead.py 4 additions, 4 deletionsaddons/website_crm/models/crm_lead.py
- addons/website_crm_partner_assign/models/crm_lead.py 5 additions, 4 deletionsaddons/website_crm_partner_assign/models/crm_lead.py
Loading
Please register or sign in to comment