2014-02-17 13:57:31 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2014-02-13 14:30:44 +00:00
|
|
|
<openerp>
|
2014-02-17 13:57:31 +00:00
|
|
|
<data>
|
2014-02-13 14:30:44 +00:00
|
|
|
|
2014-02-17 13:57:31 +00:00
|
|
|
<!-- action of converting, via wizard -->
|
|
|
|
<record model="ir.actions.act_window" id="convert_lead2projectissue_wizard_action" >
|
|
|
|
<field name="name">Convert to Issue</field>
|
|
|
|
<field name="res_model">crm.lead2projectissue.wizard</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- view of the Wizard Form -->
|
|
|
|
<record model="ir.ui.view" id="view_crm_lead2projectissue_wizard" >
|
|
|
|
<field name="name">crm.lead2projectissue.wizard.form</field>
|
|
|
|
<field name="model">crm.lead2projectissue.wizard</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Convert to Issue" version="7.0">
|
2014-03-04 17:05:44 +00:00
|
|
|
<group>
|
|
|
|
<field name="project_id"/>
|
|
|
|
</group>
|
2014-02-17 13:57:31 +00:00
|
|
|
<footer>
|
2014-02-19 11:12:51 +00:00
|
|
|
<button type="object" name="action_lead_to_project_issue" string="Create Issue" class="oe_highlight"/>
|
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
2014-02-17 13:57:31 +00:00
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2014-02-17 14:26:57 +00:00
|
|
|
<!-- 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">
|
2014-04-14 12:52:31 +00:00
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
2014-03-24 05:09:21 +00:00
|
|
|
<button class="oe_inline oe_stat_button" type="action" name="%(convert_lead2projectissue_wizard_action)d" icon="fa-bug"
|
2014-04-14 12:52:31 +00:00
|
|
|
help="Convert to Issue">
|
|
|
|
<div>Convert To<br/>Issue</div>
|
|
|
|
</button>
|
2014-02-17 14:26:57 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2014-02-17 13:57:31 +00:00
|
|
|
</data>
|
2014-02-13 14:30:44 +00:00
|
|
|
</openerp>
|