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.

41 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="add_stree3_in_form_view" model="ir.ui.view">
  5. <field name="name">add stree3 in form view</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <xpath
  10. expr="//form[@string='Partners']/sheet/group/group/div/field[@name='street2']"
  11. position="after">
  12. <field name="street3"
  13. attrs="{'readonly': [('use_parent_address','=',True)]}"/>
  14. </xpath>
  15. <xpath expr="//form[@string='Contact']/sheet/group/div/field[@name='street2']"
  16. position="after">
  17. <field name="street3"/>
  18. </xpath>
  19. <xpath expr="//kanban/field[@name='street2']"
  20. position="after">
  21. <field name="street3"/>
  22. </xpath>
  23. </field>
  24. </record>
  25. <record id="add_street_3_in_kanban" model="ir.ui.view">
  26. <field name="name">add street 3 in kanban</field>
  27. <field name="model">res.partner</field>
  28. <field name="inherit_id" ref="base.res_partner_kanban_view"/>
  29. <field name="arch" type="xml">
  30. <field name="street2" position="after">
  31. <field name="street3"/>
  32. </field>
  33. </field>
  34. </record>
  35. </data>
  36. </openerp>