Now there should be only one button box per page, and the name should be "button_box". Conflicts: addons/crm/crm_tip_data.xml addons/event/event_tip_data.xml addons/fleet/fleet_view.xml addons/hr/hr_view.xml addons/hr_recruitment/hr_recruitment_view.xml addons/project/project_tip_data.xml addons/purchase/purchase_tip_data.xml addons/sale_crm/sale_crm_view.xml addons/website_quote/views/website_quotation_backend.xml openerp/addons/base/res/res_partner_view.xml Conflicts: addons/account_reports/views/partner_view.xml Conflicts: addons/claim_from_delivery/claim_delivery_view.xml addons/stock/stock_view.xml
52 lines
2.1 KiB
XML
52 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- 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">
|
|
<group>
|
|
<field name="project_id"/>
|
|
</group>
|
|
<footer>
|
|
<button type="object" name="action_lead_to_project_issue" string="Create Issue" class="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</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>
|