Commit Graph
6 Commits
Author SHA1 Message Date
Pratik Raval bb24757d08 [IMP] crm: detect leads based on similar phone/mobile number
Currently, the 'similar lead detection' mechanism only considers email,
contact name, and partner name while finding duplicate leads in CRM.

After this commit, it will also consider the mobile/phone number for
the same. Note that the mobile numbers and phone numbers both will be
matched with each other while finding duplicate leads.

Task-2817884

closes odoo/odoo#88372

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-08-25 19:56:48 +02:00
François (frc) cdd920a113 [IMP] iap_tools: New parameter TTL for iap_charge & authorize
closes odoo/odoo#74599

Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
2021-08-11 13:40:04 +00:00
Aurélien Warnon 9d9403c56f [IMP] crm_iap_lead: add a whitelisted countries mechanism for states in iap search
States for some specific countries should not be offered as filtering options
for crm.iap.lead.mining.request because they drastically reduce the amount of
IAP reveal results.

For example, in Belgium, only 11% of companies have a defined state within the
reveal service while the rest of them have no state defined at all.

Meaning specifying states for that country will yield a lot less results than
what you could expect, which is not the desired behavior.
Obviously all companies are active within a state, it's just a lack of data in
the reveal service side.

To help users create meaningful iap searches, we only keep the states filtering
for several whitelisted countries (based on their country code).

The complete list and reasons for this change can be found on the task.

Task-2471703
2021-05-27 13:54:32 +00:00
Louis Baudoux 60b89987ec [IMP] iap: mock IAP jsonrpc to avoid errors/spam of the real servers
Before this commit, some requests could be sent to the actual IAP
servers during testing. These calls weren't always mocked as many
of these requests are sent in background while performing usual
tasks such as creating a bill.

Now, any call to the function iap_jsonrpc during testing will result
in an AccessError.

closes odoo/odoo#70925

X-original-commit: f31f1972ff0e35deb3005ce160930b70ddc8e531
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2021-05-18 06:50:16 +00:00
Thibault Delavallée a43ed0305f [IMP] iap, crm_iap_lead_enrich, mail_extension: use global blacklist of email providers for email IAP services
Purpose is to have a blacklist of email providers on which IAP services should
not run. Indeed those are generic mailing providers. Retrieving company
information from them makes no sense. Indeed they would be associated to the
mailing provider and not to the real company or partner using it.

In this commit we define a global domain blacklist in iap and use it in
crm_iap_lead_enrich and mail_extension, replacing existing local custom
code.

Task ID-2322455
PR #64545

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-01-14 13:36:58 +00:00
Thibault Delavallée fcd10b3691 [REF] iap, various: reorganize IAP module organization
PURPOSE

Clean and improve IAP tools integration in Odoo. Introduce bridge modules
to extract common features, notably for CRM and Partner.

SPECIFICATIONS

In this commit we reorganize IAP module to better understand its content
and ease future cleaning

  * have models separated from tools;
  * rename some tools to find their grep. An iap_ prefix is added to ensure
    we don't clash with other global functions or methods;
  * perform some linting;

To provide backward compatibility support we keep some import in init file of
IAP addon. Standard code is about to be updated but we want to avoid too
much issues when migrating code to 13.5 . Compatibility layer will be removed
after v14 final freeze.

LINKS

Task ID-2248367
Community PR odoo/odoo#53214
Enterprise PR odoo/enterprise#11258
Upgrade PR odoo/upgrade#1363
IAP PR odoo/iap-apps#191
2020-08-18 11:41:59 +00:00