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.

27 lines
1.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_partner_simple_form" model="ir.ui.view">
  4. <field name="model">res.partner</field>
  5. <field name="inherit_id" ref="base.view_partner_simple_form" />
  6. <field name="arch" type="xml">
  7. <xpath expr="." position="attributes">
  8. <attribute name="string">Partner form</attribute>
  9. </xpath>
  10. <field name="parent_id" position="attributes">
  11. <attribute name="context" operation="python_dict" key="default_name">'The company name'</attribute>
  12. <attribute name="context" operation="python_dict" key="default_company_id">context.get('company_id', context.get('company'))</attribute>
  13. </field>
  14. <!-- without operations, the standard handler should be called /-->
  15. <field name="parent_id" position="attributes">
  16. <attribute name="name">parent_id</attribute>
  17. </field>
  18. <form position="inside">
  19. <notebook>
  20. <page string="Phone numbers" name="phone_book" />
  21. </notebook>
  22. </form>
  23. <xpath expr="//field[@name='phone']" position="move" target="//page[@name='phone_book']" />
  24. <xpath expr="//field[@name='mobile']" position="move" target="//page[@name='phone_book']" />
  25. </field>
  26. </record>
  27. </odoo>