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.

61 lines
2.4 KiB

10 years ago
10 years ago
10 years ago
  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/sheet/group/group/div/field[@name='street2']"
  11. position="after">
  12. <field name="street3"
  13. placeholder="Street 3..."
  14. class="o_address_street"
  15. attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
  16. </xpath>
  17. <xpath expr='//field[@name="child_ids"]' position="attributes">
  18. <attribute name="context">{'default_parent_id': active_id,
  19. 'default_street': street, 'default_street2': street2,
  20. 'default_street3': street3, 'default_city': city, 'default_state_id':
  21. state_id, 'default_zip': zip, 'default_country_id': country_id,
  22. 'default_supplier': supplier, 'default_customer': customer,
  23. 'default_lang': lang,}</attribute>
  24. </xpath>
  25. <xpath expr="/form//field[@name='child_ids']//field[@name='street2']"
  26. position="after">
  27. <field name="street3" placeholder="Street 3..." class="o_address_street"/>
  28. </xpath>
  29. <xpath expr="/form//field[@name='child_ids']/kanban/field[@name='street2']"
  30. position="after">
  31. <field name="street3"/>
  32. </xpath>
  33. </field>
  34. </record>
  35. <record id="add_street_3_in_kanban" model="ir.ui.view">
  36. <field name="name">add street 3 in kanban</field>
  37. <field name="model">res.partner</field>
  38. <field name="inherit_id" ref="base.res_partner_kanban_view"/>
  39. <field name="arch" type="xml">
  40. <field name="street2" position="after">
  41. <field name="street3"/>
  42. </field>
  43. </field>
  44. </record>
  45. <record id="view_partner_address_form" model="ir.ui.view">
  46. <field name="name">add street 3 in res.partner.form.address</field>
  47. <field name="model">res.partner</field>
  48. <field name="inherit_id" ref="base.view_partner_address_form"/>
  49. <field name="arch" type="xml">
  50. <field name="street2" position="after">
  51. <field name="street3" placeholder="Street 3..." class="o_address_street"/>
  52. </field>
  53. </field>
  54. </record>
  55. </data>
  56. </openerp>