Browse Source
Backport the 6.0 branch to OpenERP 5.0 and keep all features (I had to use several hacks !)
5.0
Backport the 6.0 branch to OpenERP 5.0 and keep all features (I had to use several hacks !)
5.0
Alexis de Lattre
12 years ago
8 changed files with 144 additions and 60 deletions
-
9asterisk_click2dial/wizard/open_calling_partner.py
-
2asterisk_click2dial/wizard/open_calling_partner_view.xml
-
3asterisk_click2dial_crm/__terp__.py
-
31asterisk_click2dial_crm/asterisk_click2dial_crm.py
-
60asterisk_click2dial_crm/res_partner_view.xml
-
81asterisk_click2dial_crm/wizard/create_crm_phonecall.py
-
1asterisk_click2dial_crm/wizard/create_crm_phonecall_view.xml
-
17asterisk_click2dial_crm/wizard/open_calling_partner_view.xml
@ -0,0 +1,60 @@ |
|||
<?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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue