45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Opportunity to Phonecall view -->
|
|
|
|
<record model="ir.ui.view" id="opportunity2phonecall_view">
|
|
<field name="name">crm.opportunity2phonecall.form</field>
|
|
<field name="model">crm.opportunity2phonecall</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Register a call">
|
|
<separator string="Register a call" colspan="4"/>
|
|
<field name="action"/>
|
|
<separator string="Call Details" colspan="4"/>
|
|
<field name="name"/>
|
|
<field name="date" string="Planned Date" attrs="{'invisible': [('action','=','log')]}"/>
|
|
<newline/>
|
|
<field name="user_id" />
|
|
<field name="section_id" widget="selection" />
|
|
<field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.phonecall')]"/>
|
|
<separator string="" colspan="4"/>
|
|
<group colspan="4">
|
|
<label string ="" colspan="2"/>
|
|
<button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
|
|
<button name="action_apply" type="object" string="Register call" icon="gtk-ok" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Opportunity to Phonecall action -->
|
|
|
|
<record model="ir.actions.act_window" id="opportunity2phonecall_act">
|
|
<field name="name">Schedule/Log Call</field>
|
|
<field name="res_model">crm.opportunity2phonecall</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="opportunity2phonecall_view"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|