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.

46 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Add phone number extension fields for partner -->
  4. <record id="view_partner_simple_number_extension_form" model="ir.ui.view">
  5. <field name="name">view.partner.simple.number.extension.form</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_simple_form"/>
  8. <field name="arch" type="xml">
  9. <field name="phone" position="after">
  10. <field name="phone_extension" string="Extn."/>
  11. </field>
  12. </field>
  13. </record>
  14. <record id="view_partner_short_form_extension_form" model="ir.ui.view">
  15. <field name="name">view.partner.short form.extension.form</field>
  16. <field name="model">res.partner</field>
  17. <field name="inherit_id" ref="base.view_partner_short_form"/>
  18. <field name="arch" type="xml">
  19. <field name="phone" position="after">
  20. <field name="phone_extension" string="Extn."/>
  21. </field>
  22. </field>
  23. </record>
  24. <record id="view_partner_number_extension_form" model="ir.ui.view">
  25. <field name="name">view.partner.number.extension.form</field>
  26. <field name="model">res.partner</field>
  27. <field name="inherit_id" ref="base.view_partner_form"/>
  28. <field name="arch" type="xml">
  29. <field name="phone" position="after">
  30. <field name="phone_extension" string="Extn."/>
  31. </field>
  32. <xpath expr="/form/sheet/notebook/page/field/kanban/field[@name='phone']" position="after">
  33. <field name="phone_extension"/>
  34. </xpath>
  35. <xpath expr="//div[hasclass('oe_kanban_details')]/div[@t-if='record.phone.raw_value']" position="after">
  36. <div t-if="record.phone_extension.raw_value">Ext: <field name="phone_extension"/></div>
  37. </xpath>
  38. <xpath expr="/form/sheet/notebook/page/field/form/sheet/group/group/field[@name='phone']" position="after">
  39. <field name="phone_extension" string="Extn."/>
  40. </xpath>
  41. </field>
  42. </record>
  43. </odoo>