Hi,
I created a hierarchical tree which work :
<record id="view_res_partner_tree_hierarchy_tis" model="ir.ui.view">
<field name="name">view_res_partner_tree_hierarchy_tis</field>
<field name="model">res.partner</field>
<field name="field_parent">child_ids</field>
<field name="arch" type="xml">
<tree string="Sous contacts">
<field name="name"/>
<field name="type"/>
<field name="parent_id" invisible="1"/>
</tree>
</field>
</record>
Now, I'd like to display it as a sub-view into res_partner view-form :
I succeed to display the tree but it seems to "forget" the "field_parent" field :
<record id="view_res_partner_contacts_form_tis2" model="ir.ui.view">
<field name="name">view_res_partner_contacts_form_tis2</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr='//field[@name="child_ids"]' position='replace'>
<field name="child_ids" nolabel="1"
context="{'tree_view_ref':'mymodule.view_res_partner_tree_hierarchy_tis'}"/>
</xpath>
</field>
</record>
(the views are based on standard res.partner object with its fields parent_id and child_ids)
Any help would be very appreciated !