You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.7 KiB
60 lines
2.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2013 Akretion (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
The licence is in the file __terp__.py
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="dial_button_replace_res_partner_address1" model="ir.ui.view">
|
|
<field name="name">dial_button_replace.res_partner_address1</field>
|
|
<field name="model">res.partner.address</field>
|
|
<field name="inherit_id" ref="asterisk_click2dial.asterisk_res_partner_address_dial1"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<button name="action_dial_phone" position="replace">
|
|
<button name="%(action_create_crm_phonecall)d" string="Dial" type="action" context="{'phone_field': ['phone', 'phone_e164']}"/>
|
|
</button>
|
|
<button name="action_dial_mobile" position="replace">
|
|
<button name="%(action_create_crm_phonecall)d" string="Dial" type="action" context="{'phone_field': ['mobile', 'mobile_e164']}"/>
|
|
</button>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="dial_button_replace_res_partner_address2" model="ir.ui.view">
|
|
<field name="name">dial_button_replace.res_partner_address2</field>
|
|
<field name="model">res.partner.address</field>
|
|
<field name="inherit_id" ref="asterisk_click2dial.asterisk_res_partner_address_dial2"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<button name="action_dial_phone" position="replace">
|
|
<button name="%(action_create_crm_phonecall)d" string="Dial" type="action" context="{'phone_field': ['phone', 'phone_e164']}"/>
|
|
</button>
|
|
<button name="action_dial_mobile" position="replace">
|
|
<button name="%(action_create_crm_phonecall)d" string="Dial" type="action" context="{'phone_field': ['mobile', 'mobile_e164']}"/>
|
|
</button>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="dial_button_replace_res_partner" model="ir.ui.view">
|
|
<field name="name">dial_button_replace.res_partner</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="asterisk_click2dial.asterisk_res_partner_dial"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<button name="action_dial_phone" position="replace">
|
|
<button name="%(action_create_crm_phonecall)d" string="Dial" type="action" context="{'phone_field': ['phone', 'phone_e164']}"/>
|
|
</button>
|
|
<button name="action_dial_mobile" position="replace">
|
|
<button name="%(action_create_crm_phonecall)d" string="Dial" type="action" context="{'phone_field': ['mobile', 'mobile_e164']}"/>
|
|
</button>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|