Before this commit, if we try to merge crm leads and few of the details are not available, traceback was thrown. For ex- - When lead does not have a company or the company does not have currency set - When the visitor name is not set This commit fixes both of the tracebacks and thus allows users to merge the leads in these cases. taskID-2745017 closes odoo/odoo#84656 X-original-commit: eda3f43dde8122aa5f572f57bf2c3c0d94abe1f2 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
17 lines
577 B
XML
17 lines
577 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="crm_lead_merge_summary_inherit_website" inherit_id="crm.crm_lead_merge_summary">
|
|
<xpath expr="//div[@name='marketing']" position="attributes">
|
|
<attribute name="t-if">lead.campaign_id or lead.medium_id or lead.source_id or lead.visitor_ids</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@name='marketing']" position="inside">
|
|
<div t-if="lead.visitor_ids">
|
|
Web Visitors: <t t-out="', '.join(lead.visitor_ids.mapped('display_name'))"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|