diff options
| author | Rémi Rahir <rar@odoo.com> | 2020-09-25 10:56:20 +0000 |
|---|---|---|
| committer | Rémi Rahir <rar@odoo.com> | 2020-10-06 06:28:33 +0000 |
| commit | 0a898e16948b38a0029937c7c2eb6e2a38fd9a8a (patch) | |
| tree | 964a1fc5498d82863953382e270044bb7fe7910f /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 2849d0b8996916574214cc08404732e13bf0b1c5 (diff) | |
[FIX] crm_iap_lead_enrich: improve iap calls robustness
In its current state, the code contacting the iap service was prone to
fail in case of huge batches of leads being processed due to 2 factors:
- the call could timeout;
- any processed lead that was modified somewhere else in the meantime
would trigger a serialization failure and ultimately make the whole
batch fail.
This commit ensures that we process the leads by smaller batches and
that we avoid serialization failures by acquiring a lock on the current
batch.
We now also avoid useless calls to iap when an email address is linked
to well-known email providers to alleviate the payload and speed up the
server's reponse.
closes odoo/odoo#59065
X-original-commit: daa909786c71c18185272dc22c4aa221666c1502
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
