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.

33 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="crm_lead_formatted_phone_form">
  5. <field name="name">crm.lead.formatted.phone.form</field>
  6. <field name="model">crm.lead</field>
  7. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  8. <field name="type">form</field>
  9. <field name="arch" type="xml">
  10. <data>
  11. <xpath expr="//notebook/page[@string='Lead']/group/field[@name='phone']"
  12. position="replace">
  13. <field name="phone" on_change="on_change_phone('phone', phone, country_id)"/>
  14. </xpath>
  15. <xpath expr="//notebook/page[@string='Lead']/group/field[@name='mobile']"
  16. position="replace">
  17. <field name="mobile" on_change="on_change_phone('mobile', mobile, country_id)"/>
  18. </xpath>
  19. <xpath expr="//notebook/page[@string='Lead']/group/field[@name='fax']"
  20. position="replace">
  21. <field name="fax" on_change="on_change_phone('fax', fax, country_id)"/>
  22. </xpath>
  23. </data>
  24. </field>
  25. </record>
  26. </data>
  27. </openerp>