| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="crm_lead_view_form" model="ir.ui.view"> |
| 4 |
<field name="name">crm.lead.view.form.inherit.iap.lead.enrich</field> |
| 5 |
<field name="model">crm.lead</field> |
| 6 |
<field name="inherit_id" ref="crm.crm_lead_view_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//button[@name='%(crm.action_crm_lead2opportunity_partner)d']" position="after"> |
| 9 |
<field name="show_enrich_button" invisible="1"/> |
| 10 |
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g" |
| 11 |
title="Enrich lead with company data" |
| 12 |
invisible="not show_enrich_button or type == 'opportunity'"/> |
| 13 |
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g" |
| 14 |
title="Enrich opportunity with company data" |
| 15 |
invisible="not show_enrich_button or type == 'lead'"/> |
| 16 |
</xpath> |
| 17 |
</field> |
| 18 |
</record> |
| 19 |
</odoo> |
| 20 |
|