No more repeated stage searches in CRM
The first shared stage is searched once when computing lead probabilities. The helper keeps its signature for custom overrides.
The first shared stage is searched once when computing lead probabilities. The helper keeps its signature for custom overrides.
| Branch | Pull request | Commit |
|---|---|---|
| 18.0 | odoo/odoo#295574 ↗ | 3cdbd1dbc6 ↗ |
| 19.0 | odoo/odoo#296050 ↗ | 9f46576040 ↗ |
| 20.0 | odoo/odoo#296865 ↗ | 7f64b64885 ↗ |
[PERF] crm: avoid repeated stage searches Search for the first shared stage once when computing lead probabilities and reuse it across teams through the context. Keep the helper signature unchanged for custom overrides.