[MOV] crm_project_issue: split files according to models
This commit is contained in:
committed by
Jérome Maes
parent
c804a61ac0
commit
ee566f6042
@@ -12,7 +12,8 @@ Lead to Issues
|
||||
Link module to map leads to issues
|
||||
""",
|
||||
'data': [
|
||||
'wizard/crm_lead2projectissue_wizard_view.xml'
|
||||
'wizard/crm_lead2projectissue_wizard_view.xml',
|
||||
'views/crm_lead_views.xml'
|
||||
],
|
||||
'depends': ['crm', 'project_issue'],
|
||||
'installable': True,
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
|
||||
<!-- inherit view of Lead Form : adding the "convert to issue" button -->
|
||||
<record id="crm_case_form_view_leads_project_issue" model="ir.ui.view">
|
||||
<field name="name">crm.lead.form.inherit.lead2projectissue</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="inherit_id" ref="crm.crm_case_form_view_leads" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button class="oe_inline oe_stat_button" type="action" name="%(convert_lead2projectissue_wizard_action)d" icon="fa-bug" help="Convert to Issue">
|
||||
<div class="o_form_field o_stat_info">
|
||||
<span class="o_stat_text">Convert To</span>
|
||||
<span class="o_stat_text">Issue</span>
|
||||
</div>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -28,23 +28,5 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- inherit view of Lead Form : adding the "convert to issue" button -->
|
||||
<record model="ir.ui.view" id="crm_case_form_view_leads_project_issue">
|
||||
<field name="name">CRM - Leads Form</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="inherit_id" ref="crm.crm_case_form_view_leads" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button class="oe_stat_button" type="action" name="%(convert_lead2projectissue_wizard_action)d" icon="fa-bug"
|
||||
help="Convert to Issue">
|
||||
<div class="o_form_field o_stat_info">
|
||||
<span class="o_stat_text">Convert To</span>
|
||||
<span class="o_stat_text">Issue</span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
Reference in New Issue
Block a user