Hi !
Here's my schema:
product.product -> product.template <- product.supplierinfo <- my_object
Now, in product.supplierinfo, I have a one2many field which is linked to my_object.
Question: How to display this one2many field as a tree in the product.product form ?
I inherit the product_normal_form_view. I tried with a relation field, but it seems that this kind of field can go only from product.product to product.template.
I also tried this :
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- views -->
<record model="ir.ui.view" id="product_my_object_form_view">
<field name="name">product.product.my_object.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="My Object">
<field name="seller_ids">
<form version="7.0">
<field name="name"/>
<field name="my_object_ids">
<tree>
<field name="my_field1"/>
<field name="my_field2"/>
<field name="my_field3"/>
<field name="my_field4"/>
</tree>
</field>
</form>
</field>
</page>
</notebook>
</field>
</record>
</data>
</openerp>
But the normal form of product.supplierinfo overrided my own...