Odoo modules extending contacts / partners
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.

52 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_partner_simple_form_inherit_fax" model="ir.ui.view">
  4. <field name="name">res.partner.view.form.simple.inherit</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_simple_form" />
  7. <field name="priority">18</field>
  8. <field name="arch" type="xml">
  9. <field name="phone" position="after">
  10. <field name="phone2" widget="phone" />
  11. </field>
  12. <field name="mobile" position="after">
  13. <field name="mobile2" widget="phone" />
  14. <field name="fax" position="move" />
  15. </field>
  16. <field name="fax" position="attributes">
  17. <attribute name="placeholder" value="" />
  18. </field>
  19. </field>
  20. </record>
  21. <record id="view_partner_form_inherit_base" model="ir.ui.view">
  22. <field name="name">res.partner.view.form.inherit</field>
  23. <field name="model">res.partner</field>
  24. <field name="inherit_id" ref="base.view_partner_form" />
  25. <field name="priority">18</field>
  26. <field name="arch" type="xml">
  27. <field name="phone" position="after">
  28. <field name="phone2" widget="phone" />
  29. </field>
  30. <field name="mobile" position="after">
  31. <field name="mobile2" widget="phone" />
  32. </field>
  33. <label for="email" position="before">
  34. <field name="fax" placeholder="" position="move" />
  35. </label>
  36. <field name="fax" position="attributes">
  37. <attribute name="placeholder" value="" />
  38. </field>
  39. <xpath expr="//field[@name='child_ids']/form//field[@name='phone']" position="after">
  40. <field name="phone2" widget="phone" />
  41. </xpath>
  42. <xpath expr="//field[@name='child_ids']/form//field[@name='mobile']" position="after">
  43. <field name="mobile2" widget="phone" />
  44. </xpath>
  45. <xpath expr="//field[@name='child_ids']/form//field[@name='fax']" position="attributes">
  46. <attribute name="placeholder" value="" />
  47. </xpath>
  48. </field>
  49. </record>
  50. </odoo>