-
- Downloads
[IMP] crm_iap_lead_enrich: improve settings of enrichment
Before this commit it was not possible to enrich leads manually as
only a cron enriches leads. It is considered as sub optimal since people
would like to do it manually on some leads and not activate it only for
all leads, using a cron.
After this commit an option is added in CRM settings to choose the type of
enrichment: either manual, either automatic.
In manual mode, a button appears on the lead to enrich if certain conditions
are met (email_adress present, not already enriched,...). It also deactivates
the enrich cron.
In automatic mode, the button on lead is not displayed and the cron is
activated.
A config parameter is defined in CRM as it is requested to be able to configure
it directly in CRM without having to first install the app then configure
it. A post install hook to synchronize cron status with config parameter
is therefore required.
FP/AJU request
Task 2075817
closes odoo/odoo#37367
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/crm/models/res_config_settings.py 5 additions, 1 deletionaddons/crm/models/res_config_settings.py
- addons/crm/views/res_config_settings_views.xml 6 additions, 0 deletionsaddons/crm/views/res_config_settings_views.xml
- addons/crm_iap_lead_enrich/__init__.py 10 additions, 0 deletionsaddons/crm_iap_lead_enrich/__init__.py
- addons/crm_iap_lead_enrich/__manifest__.py 3 additions, 1 deletionaddons/crm_iap_lead_enrich/__manifest__.py
- addons/crm_iap_lead_enrich/data/ir_action.xml 16 additions, 0 deletionsaddons/crm_iap_lead_enrich/data/ir_action.xml
- addons/crm_iap_lead_enrich/data/mail_data.xml 1 addition, 20 deletionsaddons/crm_iap_lead_enrich/data/mail_data.xml
- addons/crm_iap_lead_enrich/models/__init__.py 1 addition, 0 deletionsaddons/crm_iap_lead_enrich/models/__init__.py
- addons/crm_iap_lead_enrich/models/crm_lead.py 15 additions, 23 deletionsaddons/crm_iap_lead_enrich/models/crm_lead.py
- addons/crm_iap_lead_enrich/models/res_config_settings.py 16 additions, 0 deletionsaddons/crm_iap_lead_enrich/models/res_config_settings.py
- addons/crm_iap_lead_enrich/tests/test_lead_enrich.py 3 additions, 3 deletionsaddons/crm_iap_lead_enrich/tests/test_lead_enrich.py
- addons/crm_iap_lead_enrich/views/crm_lead_views.xml 20 additions, 0 deletionsaddons/crm_iap_lead_enrich/views/crm_lead_views.xml
- addons/crm_iap_lead_enrich/views/res_config_settings_views.xml 0 additions, 13 deletions...s/crm_iap_lead_enrich/views/res_config_settings_views.xml
Loading
Please register or sign in to comment