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.

64 lines
2.5 KiB

  1. <odoo>
  2. <record id="view_partner_form" model="ir.ui.view">
  3. <field name="name">add street3 in form view</field>
  4. <field name="model">res.partner</field>
  5. <field name="inherit_id" ref="base.view_partner_form"/>
  6. <field name="arch" type="xml">
  7. <xpath
  8. expr="/form/sheet/group/group/div/field[@name='street2']"
  9. position="after">
  10. <field name="street3"
  11. placeholder="Street 3..."
  12. class="o_address_street"
  13. attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
  14. </xpath>
  15. <xpath expr='//field[@name="child_ids"]' position="attributes">
  16. <attribute name="context" operation="python_dict"
  17. key="default_street3">street3</attribute>
  18. </xpath>
  19. <xpath expr="/form//field[@name='child_ids']/form//field[@name='street2']"
  20. position="after">
  21. <field name="street3" placeholder="Street 3..." class="o_address_street"/>
  22. </xpath>
  23. <xpath expr="/form//field[@name='child_ids']/kanban/field[@name='street2']"
  24. position="after">
  25. <field name="street3"/>
  26. </xpath>
  27. </field>
  28. </record>
  29. <record id="res_partner_kanban_view" model="ir.ui.view">
  30. <field name="name">add street 3 in kanban</field>
  31. <field name="model">res.partner</field>
  32. <field name="inherit_id" ref="base.res_partner_kanban_view"/>
  33. <field name="arch" type="xml">
  34. <field name="street2" position="after">
  35. <field name="street3"/>
  36. </field>
  37. </field>
  38. </record>
  39. <record id="view_partner_address_form" model="ir.ui.view">
  40. <field name="name">add street 3 in res.partner.form.address</field>
  41. <field name="model">res.partner</field>
  42. <field name="inherit_id" ref="base.view_partner_address_form"/>
  43. <field name="arch" type="xml">
  44. <field name="street2" position="after">
  45. <field name="street3" placeholder="Street 3..." class="o_address_street"/>
  46. </field>
  47. </field>
  48. </record>
  49. <record id="res_partner_view_form_private" model="ir.ui.view">
  50. <field name="name">add street 3 in res.partner.form.private</field>
  51. <field name="model">res.partner</field>
  52. <field name="inherit_id" ref="base.res_partner_view_form_private"/>
  53. <field name="arch" type="xml">
  54. <field name="street2" position="after">
  55. <field name="street3" placeholder="Street 3..." class="o_address_street"/>
  56. </field>
  57. </field>
  58. </record>
  59. </odoo>