|
|
@ -1,9 +1,8 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<openerp> |
|
|
|
<data> |
|
|
|
<record id="view_partner_form" model="ir.ui.view"> |
|
|
|
<odoo> |
|
|
|
<record id="view_partner_simple_form" model="ir.ui.view"> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_form" /> |
|
|
|
<field name="inherit_id" ref="base.view_partner_simple_form" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="." position="attributes"> |
|
|
|
<attribute name="string">Partner form</attribute> |
|
|
@ -12,11 +11,13 @@ |
|
|
|
<attribute name="context" operation="python_dict" key="default_name">'The company name'</attribute> |
|
|
|
<attribute name="context" operation="python_dict" key="default_company_id">context.get('company_id', context.get('company'))</attribute> |
|
|
|
</field> |
|
|
|
<notebook position="inside"> |
|
|
|
<page string="A new page" name="my_new_page" /> |
|
|
|
</notebook> |
|
|
|
<xpath expr="//field[@name='child_ids']" position="move" target="//page[@name='my_new_page']" /> |
|
|
|
<form position="inside"> |
|
|
|
<notebook> |
|
|
|
<page string="Phone numbers" name="phone_book" /> |
|
|
|
</notebook> |
|
|
|
</form> |
|
|
|
<xpath expr="//field[@name='phone']" position="move" target="//page[@name='phone_book']" /> |
|
|
|
<xpath expr="//field[@name='mobile']" position="move" target="//page[@name='phone_book']" /> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
</data> |
|
|
|
</openerp> |
|
|
|
</odoo> |