|
|
@ -2,7 +2,7 @@ |
|
|
|
<!-- |
|
|
|
Asterisk Click2dial module for OpenERP |
|
|
|
Copyright (C) 2010-2012 Alexis de Lattre <alexis@via.ecp.fr> |
|
|
|
The licence is in the file __terp__.py |
|
|
|
The licence is in the file __openerp__.py |
|
|
|
|
|
|
|
Inherit partner_address views to add 'Dial' button next to 'phone' |
|
|
|
and 'mobile' fields |
|
|
@ -14,22 +14,19 @@ |
|
|
|
<record id="asterisk_res_partner_address_dial1" model="ir.ui.view"> |
|
|
|
<field name="name">asterisk.res.partner.address.dial1</field> |
|
|
|
<field name="model">res.partner.address</field> |
|
|
|
<field name="type">form</field> |
|
|
|
<field name="priority">15</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_address_form1"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<data> |
|
|
|
<field name="phone" position="replace"> |
|
|
|
<label string="Phone : " align="1.0" /> |
|
|
|
<group colspan="1" col="6"> |
|
|
|
<field name="phone" nolabel="1" colspan="5" select="2" /> |
|
|
|
<group colspan="2" col="8"> |
|
|
|
<field name="phone" colspan="7" /> |
|
|
|
<button name="action_dial_phone" string="Dial" type="object"/> |
|
|
|
</group> |
|
|
|
</field> |
|
|
|
<field name="mobile" position="replace"> |
|
|
|
<label string="Mobile : " align="1.0" /> |
|
|
|
<group colspan="1" col="6"> |
|
|
|
<field name="mobile" nolabel="1" colspan="5" select="2" /> |
|
|
|
<group colspan="2" col="8"> |
|
|
|
<field name="mobile" colspan="7" /> |
|
|
|
<button name="action_dial_mobile" string="Dial" type="object"/> |
|
|
|
</group> |
|
|
|
</field> |
|
|
@ -40,22 +37,19 @@ |
|
|
|
<record id="asterisk_res_partner_address_dial2" model="ir.ui.view"> |
|
|
|
<field name="name">asterisk.res.partner.address.dial2</field> |
|
|
|
<field name="model">res.partner.address</field> |
|
|
|
<field name="type">form</field> |
|
|
|
<field name="priority">15</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_address_form2"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<data> |
|
|
|
<field name="phone" position="replace"> |
|
|
|
<label string="Phone : " align="1.0" /> |
|
|
|
<group colspan="1" col="6"> |
|
|
|
<field name="phone" nolabel="1" colspan="5" select="2" /> |
|
|
|
<group colspan="2" col="8"> |
|
|
|
<field name="phone" colspan="7" /> |
|
|
|
<button name="action_dial_phone" string="Dial" type="object"/> |
|
|
|
</group> |
|
|
|
</field> |
|
|
|
<field name="mobile" position="replace"> |
|
|
|
<label string="Mobile : " align="1.0" /> |
|
|
|
<group colspan="1" col="6"> |
|
|
|
<field name="mobile" nolabel="1" colspan="5" select="2" /> |
|
|
|
<group colspan="2" col="8"> |
|
|
|
<field name="mobile" colspan="7" /> |
|
|
|
<button name="action_dial_mobile" string="Dial" type="object"/> |
|
|
|
</group> |
|
|
|
</field> |
|
|
@ -66,22 +60,19 @@ |
|
|
|
<record id="asterisk_res_partner_dial" model="ir.ui.view"> |
|
|
|
<field name="name">asterisk.res.partner.dial</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="type">form</field> |
|
|
|
<field name="priority">15</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<data> |
|
|
|
<field name="phone" position="replace"> |
|
|
|
<label string="Phone : " align="1.0" /> |
|
|
|
<group colspan="1" col="6"> |
|
|
|
<field name="phone" nolabel="1" colspan="5" select="2" /> |
|
|
|
<group colspan="2" col="8"> |
|
|
|
<field name="phone" colspan="7" /> |
|
|
|
<button name="action_dial_phone" string="Dial" type="object"/> |
|
|
|
</group> |
|
|
|
</field> |
|
|
|
<field name="mobile" position="replace"> |
|
|
|
<label string="Mobile : " align="1.0" /> |
|
|
|
<group colspan="1" col="6"> |
|
|
|
<field name="mobile" nolabel="1" colspan="5" select="2" /> |
|
|
|
<group colspan="2" col="8"> |
|
|
|
<field name="mobile" colspan="7" /> |
|
|
|
<button name="action_dial_mobile" string="Dial" type="object"/> |
|
|
|
</group> |
|
|
|
</field> |
|
|
|