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.

95 lines
3.5 KiB

13 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Asterisk Click2dial module for OpenERP
  4. Copyright (C) 2010-2012 Alexis de Lattre <alexis@via.ecp.fr>
  5. The licence is in the file __terp__.py
  6. Inherit partner_address views to add 'Dial' button next to 'phone'
  7. and 'mobile' fields
  8. -->
  9. <openerp>
  10. <data>
  11. <record id="asterisk_res_partner_address_dial1" model="ir.ui.view">
  12. <field name="name">asterisk.res.partner.address.dial1</field>
  13. <field name="model">res.partner.address</field>
  14. <field name="type">form</field>
  15. <field name="priority">15</field>
  16. <field name="inherit_id" ref="base.view_partner_address_form1"/>
  17. <field name="arch" type="xml">
  18. <data>
  19. <field name="phone" position="replace">
  20. <label string="Phone : " align="1.0" />
  21. <group colspan="1" col="6">
  22. <field name="phone" nolabel="1" colspan="5" select="2" />
  23. <button name="action_dial_phone" string="Dial" type="object"/>
  24. </group>
  25. </field>
  26. <field name="mobile" position="replace">
  27. <label string="Mobile : " align="1.0" />
  28. <group colspan="1" col="6">
  29. <field name="mobile" nolabel="1" colspan="5" select="2" />
  30. <button name="action_dial_mobile" string="Dial" type="object"/>
  31. </group>
  32. </field>
  33. </data>
  34. </field>
  35. </record>
  36. <record id="asterisk_res_partner_address_dial2" model="ir.ui.view">
  37. <field name="name">asterisk.res.partner.address.dial2</field>
  38. <field name="model">res.partner.address</field>
  39. <field name="type">form</field>
  40. <field name="priority">15</field>
  41. <field name="inherit_id" ref="base.view_partner_address_form2"/>
  42. <field name="arch" type="xml">
  43. <data>
  44. <field name="phone" position="replace">
  45. <label string="Phone : " align="1.0" />
  46. <group colspan="1" col="6">
  47. <field name="phone" nolabel="1" colspan="5" select="2" />
  48. <button name="action_dial_phone" string="Dial" type="object"/>
  49. </group>
  50. </field>
  51. <field name="mobile" position="replace">
  52. <label string="Mobile : " align="1.0" />
  53. <group colspan="1" col="6">
  54. <field name="mobile" nolabel="1" colspan="5" select="2" />
  55. <button name="action_dial_mobile" string="Dial" type="object"/>
  56. </group>
  57. </field>
  58. </data>
  59. </field>
  60. </record>
  61. <record id="asterisk_res_partner_dial" model="ir.ui.view">
  62. <field name="name">asterisk.res.partner.dial</field>
  63. <field name="model">res.partner</field>
  64. <field name="type">form</field>
  65. <field name="priority">15</field>
  66. <field name="inherit_id" ref="base.view_partner_form"/>
  67. <field name="arch" type="xml">
  68. <data>
  69. <field name="phone" position="replace">
  70. <label string="Phone : " align="1.0" />
  71. <group colspan="1" col="6">
  72. <field name="phone" nolabel="1" colspan="5" select="2" />
  73. <button name="action_dial_phone" string="Dial" type="object"/>
  74. </group>
  75. </field>
  76. <field name="mobile" position="replace">
  77. <label string="Mobile : " align="1.0" />
  78. <group colspan="1" col="6">
  79. <field name="mobile" nolabel="1" colspan="5" select="2" />
  80. <button name="action_dial_mobile" string="Dial" type="object"/>
  81. </group>
  82. </field>
  83. </data>
  84. </field>
  85. </record>
  86. </data>
  87. </openerp>