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.

92 lines
3.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Asterisk Click2dial module for OpenERP
  4. Copyright (C) 2010 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="view_res_partner_address_inherit_form1" model="ir.ui.view">
  12. <field name="name">res.partner.address.inherit.form1</field>
  13. <field name="model">res.partner.address</field>
  14. <field name="type">form</field>
  15. <field name="inherit_id" ref="base.view_partner_address_form1"/>
  16. <field name="arch" type="xml">
  17. <data>
  18. <field name="phone" position="replace">
  19. <label string="Phone : " align="1.0" />
  20. <group colspan="1" col="5">
  21. <field name="phone" nolabel="1" colspan="4" />
  22. <button name="action_dial_phone" string="Dial" type="object"/>
  23. </group>
  24. </field>
  25. <field name="mobile" position="replace">
  26. <label string="Mobile : " align="1.0" />
  27. <group colspan="1" col="5">
  28. <field name="mobile" nolabel="1" colspan="4" />
  29. <button name="action_dial_mobile" string="Dial" type="object"/>
  30. </group>
  31. </field>
  32. </data>
  33. </field>
  34. </record>
  35. <record id="view_res_partner_address_inherit_form2" model="ir.ui.view">
  36. <field name="name">res.partner.address.inherit.form2</field>
  37. <field name="model">res.partner.address</field>
  38. <field name="type">form</field>
  39. <field name="inherit_id" ref="base.view_partner_address_form2"/>
  40. <field name="arch" type="xml">
  41. <data>
  42. <field name="phone" position="replace">
  43. <label string="Phone : " align="1.0" />
  44. <group colspan="1" col="5">
  45. <field name="phone" nolabel="1" colspan="4" />
  46. <button name="action_dial_phone" string="Dial" type="object"/>
  47. </group>
  48. </field>
  49. <field name="mobile" position="replace">
  50. <label string="Mobile : " align="1.0" />
  51. <group colspan="1" col="5">
  52. <field name="mobile" nolabel="1" colspan="4" />
  53. <button name="action_dial_mobile" string="Dial" type="object"/>
  54. </group>
  55. </field>
  56. </data>
  57. </field>
  58. </record>
  59. <record id="view_res_partner_inherit_form" model="ir.ui.view">
  60. <field name="name">res.partner.inherit.form</field>
  61. <field name="model">res.partner</field>
  62. <field name="type">form</field>
  63. <field name="inherit_id" ref="base.view_partner_form"/>
  64. <field name="arch" type="xml">
  65. <data>
  66. <field name="phone" position="replace">
  67. <label string="Phone : " align="1.0" />
  68. <group colspan="1" col="5">
  69. <field name="phone" nolabel="1" colspan="4" />
  70. <button name="action_dial_phone" string="Dial" type="object"/>
  71. </group>
  72. </field>
  73. <field name="mobile" position="replace">
  74. <label string="Mobile : " align="1.0" />
  75. <group colspan="1" col="5">
  76. <field name="mobile" nolabel="1" colspan="4" />
  77. <button name="action_dial_mobile" string="Dial" type="object"/>
  78. </group>
  79. </field>
  80. </data>
  81. </field>
  82. </record>
  83. </data>
  84. </openerp>