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.

53 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Base Phone module for OpenERP
  4. Copyright (C) 2010-2014 Alexis de Lattre <alexis@via.ecp.fr>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <record id="view_partner_simple_form" model="ir.ui.view">
  10. <field name="name">base.phone.res.partner.simplified.form</field>
  11. <field name="model">res.partner</field>
  12. <field name="inherit_id" ref="base.view_partner_simple_form"/>
  13. <field name="arch" type="xml">
  14. <field name="phone" position="attributes">
  15. <attribute name="widget">phone</attribute>
  16. </field>
  17. <field name="mobile" position="attributes">
  18. <attribute name="widget">phone</attribute>
  19. </field>
  20. </field>
  21. </record>
  22. <record id="view_partner_form" model="ir.ui.view">
  23. <field name="name">base.phone.res.partner.form</field>
  24. <field name="model">res.partner</field>
  25. <field name="inherit_id" ref="base.view_partner_form"/>
  26. <field name="arch" type="xml">
  27. <xpath expr="//group/group/field[@name='phone']" position="attributes">
  28. <attribute name="widget">phone</attribute>
  29. </xpath>
  30. <xpath expr="//group/group/field[@name='mobile']" position="attributes">
  31. <attribute name="widget">phone</attribute>
  32. </xpath>
  33. <xpath expr="//group/group/field[@name='fax']" position="attributes">
  34. <attribute name="widget">fax</attribute>
  35. </xpath>
  36. <xpath expr="//form[@string='Contact']/sheet/group/field[@name='phone']" position="attributes">
  37. <attribute name="widget">phone</attribute>
  38. </xpath>
  39. <xpath expr="//form[@string='Contact']/sheet/group/field[@name='mobile']" position="attributes">
  40. <attribute name="widget">phone</attribute>
  41. </xpath>
  42. </field>
  43. </record>
  44. <record id="base.action_partner_form" model="ir.actions.act_window">
  45. <field name="context">{'search_default_customer':1, 'raise_if_phone_parse_fails': True}</field>
  46. </record>
  47. </data>
  48. </openerp>