-
- Downloads
[IMP] partner_autocomplete,crm_*: unify displayed "clearbit" information
PURPOSE
We make multiple calls to the clearbit API and the returned information are
shown in various different templates, although they contain the same
information.
The purpose of this commit is to unify the templates into a single one to
reduce code size and improve coherence.
SPECIFICATIONS
Currently, we have 3 ways of reaching out to the IAP clearbit api:
- When creating a partner (autocomplete service)
- When enriching an existing lead based on its email address
- When generating leads using the "Geneate Leads" button or using the website
visitors
Every time we use the service, we log a note in the model's chatter containing
all the information returned by the cleabit service (estimated annual revenue,
media links, sector, ...).
Though using different endpoints and methods, all the calls essentially return
the same data, and the templates could be unified for consistency.
This is the goal of this commit.
We merge the 3 separate templates of each modules into a unique template that
always renders the same information to the end user.
To do that, we had to find a common module to store the template, we chose
"partner_autocomplete" as it's installed anyway as soon as "crm_iap_lead_*" is
installed.
LINKS
PR #40349
Task 2081471
Related: odoo/upgrade#775
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/crm_iap_lead/__manifest__.py 1 addition, 1 deletionaddons/crm_iap_lead/__manifest__.py
- addons/crm_iap_lead/data/message_template.xml 53 additions, 117 deletionsaddons/crm_iap_lead/data/message_template.xml
- addons/crm_iap_lead/models/crm_iap_lead_helpers.py 1 addition, 52 deletionsaddons/crm_iap_lead/models/crm_iap_lead_helpers.py
- addons/crm_iap_lead/models/crm_iap_lead_mining_request.py 11 additions, 5 deletionsaddons/crm_iap_lead/models/crm_iap_lead_mining_request.py
- addons/crm_iap_lead_enrich/__manifest__.py 1 addition, 0 deletionsaddons/crm_iap_lead_enrich/__manifest__.py
- addons/crm_iap_lead_enrich/data/mail_data.xml 0 additions, 73 deletionsaddons/crm_iap_lead_enrich/data/mail_data.xml
- addons/crm_iap_lead_enrich/models/crm_lead.py 8 additions, 25 deletionsaddons/crm_iap_lead_enrich/models/crm_lead.py
- addons/crm_iap_lead_enrich/models/iap_enrich_api.py 2 additions, 1 deletionaddons/crm_iap_lead_enrich/models/iap_enrich_api.py
- addons/crm_iap_lead_website/models/crm_reveal_rule.py 10 additions, 2 deletionsaddons/crm_iap_lead_website/models/crm_reveal_rule.py
- addons/partner_autocomplete/models/res_partner.py 4 additions, 2 deletionsaddons/partner_autocomplete/models/res_partner.py
- addons/partner_autocomplete/views/additional_info_template.xml 104 additions, 90 deletions...s/partner_autocomplete/views/additional_info_template.xml
Loading
Please register or sign in to comment