Browse Source

Create a dedicated Tab in the res_users view.

Larger phone field in res_partner_address (smaller 'dial' button)
6.0
Alexis de Lattre 13 years ago
parent
commit
233aa43769
  1. 24
      asterisk_click2dial/res_partner_view.xml
  2. 16
      asterisk_click2dial/res_users_view.xml

24
asterisk_click2dial/res_partner_view.xml

@ -21,15 +21,15 @@
<data>
<field name="phone" position="replace">
<label string="Phone : " align="1.0" />
<group colspan="1" col="5">
<field name="phone" nolabel="1" colspan="4" select="2" />
<group colspan="1" col="6">
<field name="phone" nolabel="1" colspan="5" select="2" />
<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="5">
<field name="mobile" nolabel="1" colspan="4" select="2" />
<group colspan="1" col="6">
<field name="mobile" nolabel="1" colspan="5" select="2" />
<button name="action_dial_mobile" string="Dial" type="object"/>
</group>
</field>
@ -47,15 +47,15 @@
<data>
<field name="phone" position="replace">
<label string="Phone : " align="1.0" />
<group colspan="1" col="5">
<field name="phone" nolabel="1" colspan="4" select="2" />
<group colspan="1" col="6">
<field name="phone" nolabel="1" colspan="5" select="2" />
<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="5">
<field name="mobile" nolabel="1" colspan="4" select="2" />
<group colspan="1" col="6">
<field name="mobile" nolabel="1" colspan="5" select="2" />
<button name="action_dial_mobile" string="Dial" type="object"/>
</group>
</field>
@ -73,15 +73,15 @@
<data>
<field name="phone" position="replace">
<label string="Phone : " align="1.0" />
<group colspan="1" col="5">
<field name="phone" nolabel="1" colspan="4" select="2" />
<group colspan="1" col="6">
<field name="phone" nolabel="1" colspan="5" select="2" />
<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="5">
<field name="mobile" nolabel="1" colspan="4" select="2" />
<group colspan="1" col="6">
<field name="mobile" nolabel="1" colspan="5" select="2" />
<button name="action_dial_mobile" string="Dial" type="object"/>
</group>
</field>

16
asterisk_click2dial/res_users_view.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Asterisk Click2dial module for OpenERP
Copyright (C) 2010 Alexis de Lattre <alexis@via.ecp.fr>
Copyright (C) 2010-2012 Alexis de Lattre <alexis@via.ecp.fr>
The licence is in the file __terp__.py
Inherit res_users view to add the click2dial-related fields
@ -16,12 +16,14 @@
<field name="type">form</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<field name="context_tz" position="after">
<field name="internal_number" select="2"/>
<field name="asterisk_chan_type"/>
<field name="callerid" select="2"/>
<field name="asterisk_server_id"/>
</field>
<page string="User" position="after">
<page string="Telephony">
<field name="internal_number" select="2"/>
<field name="asterisk_chan_type"/>
<field name="callerid" />
<field name="asterisk_server_id"/>
</page>
</page>
</field>
</record>

Loading…
Cancel
Save