Purpose ======= Add more fields when we merge multiple leads to be sure not lose valuable information. Specifications ============== Those fields are propagated to the destination if the value on the destination is Falsy - referred - color - recurring_revenue - recurring_plan - function - lang_id - date_deadline - reveal_id - lead_mining_request_id - reveal_ip - reveal_iap_credits - reveal_rule_id - event_lead_rule_id - event_id The "lost_reason" field is propagated to the destination only if it's lost (otherwise, it makes no sense to have a lost reason on a non-lost lead). The field "iap_enrich_done" is set to True if at least one lead has been enriched. We also keep the sum of all the lead tags (and remove any potential duplicates). The address is taken from the lead with the most non-empty address fields (sorted by highest rank if multiple lead have the same amount of non-empty fields). Task-2447721 PR odoo/odoo#75742
27 lines
775 B
Python
27 lines
775 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Event CRM',
|
|
'version': '1.0',
|
|
'category': 'Marketing/Events',
|
|
'website': 'https://www.odoo.com/app/events',
|
|
'description': "Create leads from event registrations.",
|
|
'depends': ['event', 'crm'],
|
|
'data': [
|
|
'security/event_crm_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/crm_lead_merge_template.xml',
|
|
'views/crm_lead_views.xml',
|
|
'views/event_registration_views.xml',
|
|
'views/event_lead_rule_views.xml',
|
|
'views/event_event_views.xml',
|
|
],
|
|
'demo': [
|
|
'data/event_crm_demo.xml',
|
|
],
|
|
'installable': True,
|
|
'auto_install': True,
|
|
'license': 'LGPL-3',
|
|
}
|