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.

22 lines
1.1 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_partner_form" model="ir.ui.view">
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form" />
  7. <field name="arch" type="xml">
  8. <xpath expr="." position="attributes">
  9. <attribute name="string">Partner form</attribute>
  10. </xpath>
  11. <field name="parent_id" position="attributes">
  12. <attribute name="context" operation="python_dict" key="default_name">'The company name'</attribute>
  13. <attribute name="context" operation="python_dict" key="default_company_id">context.get('company_id', context.get('company'))</attribute>
  14. </field>
  15. <notebook position="inside">
  16. <page string="A new page" name="my_new_page" />
  17. </notebook>
  18. <xpath expr="//field[@name='child_ids']" position="move" target="//page[@name='my_new_page']" />
  19. </field>
  20. </record>
  21. </data>
  22. </openerp>