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.

63 lines
2.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Asterisk Click2dial module for OpenERP
  4. Copyright (C) 2010-2013 Alexis de Lattre <alexis@via.ecp.fr>
  5. Copyright (C) 2010-2013 Invitu <contact@invitu.com>
  6. The licence is in the file __openerp__.py
  7. Inherit lead views to add 'Dial' button next to 'phone'
  8. and 'mobile' fields
  9. -->
  10. <openerp>
  11. <data>
  12. <record id="asterisk_crm_lead_simplified_form_dial" model="ir.ui.view">
  13. <field name="name">asterisk.crm_lead.form.dial</field>
  14. <field name="model">crm.lead</field>
  15. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  16. <field name="arch" type="xml">
  17. <field name="phone" position="replace">
  18. <group colspan="2" col="8">
  19. <field name="phone" widget="phone" colspan="7" />
  20. <button name="action_dial" context="{'field2dial': 'phone'}" string="Dial" type="object" attrs="{'invisible':[('phone','=',False)]}"/>
  21. </group>
  22. </field>
  23. <field name="mobile" position="replace">
  24. <group colspan="2" col="8">
  25. <field name="mobile" widget="phone" colspan="7" />
  26. <button name="action_dial" context="{'field2dial': 'mobile'}" string="Dial" type="object" attrs="{'invisible':[('mobile','=',False)]}"/>
  27. </group>
  28. </field>
  29. <field name="fax" position="attributes">
  30. <attribute name="widget">fax</attribute>
  31. </field>
  32. </field>
  33. </record>
  34. <record id="asterisk_crm_case_form_view_oppor_dial" model="ir.ui.view">
  35. <field name="name">asterisk.crm_case.form.view_oppor.dial</field>
  36. <field name="model">crm.lead</field>
  37. <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  38. <field name="arch" type="xml">
  39. <field name="phone" position="replace">
  40. <group colspan="2" col="8">
  41. <field name="phone" widget="phone" colspan="7" />
  42. <button name="action_dial" context="{'field2dial': 'phone'}" string="Dial" type="object" attrs="{'invisible':[('phone','=',False)]}"/>
  43. </group>
  44. </field>
  45. <field name="mobile" position="replace">
  46. <group colspan="2" col="8">
  47. <field name="mobile" widget="phone" colspan="7" />
  48. <button name="action_dial" context="{'field2dial': 'mobile'}" string="Dial" type="object" attrs="{'invisible':[('mobile','=',False)]}"/>
  49. </group>
  50. </field>
  51. <field name="fax" position="attributes">
  52. <attribute name="widget">fax</attribute>
  53. </field>
  54. </field>
  55. </record>
  56. </data>
  57. </openerp>