Inheritence of a tree inside a form

Asked by forstera

Hello all,

I'm trying to add a field into a tree included in a form. The original form has a structure like this :

...
<form string=
    <notebook>
        <page>
            <field colspan="4" mode="tree,form,graph" name="order_line" widget="one2manylist">
            <form string="Sale Order Line">
             .....
            </form>
            <tree string="Sales order lines">
            .....
            </tree>
      </field>
....

So, I wanted to add some fields inside the form 'form_2' and the tree 'tree_2'

For the form, no problem it's working fine. But for the tree, impossible to add some fields. If,before declaring the new fiels I add the tag <tree string="Sales order lines">, this is the graph that is displayed ! if I add nothing, the fiels are coming in my form and not in my tree.

I dont know which tag to add to add fields in my tree...

Thanks very much for your help

Question information

Language:
English Edit question
Status:
Solved
For:
OpenERP Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello forstera,

If you did not able to add the new field in the tree view in inherited view then simply create a separate tree view for particular onw2many relational field with new field and also remove the tree view from parent view.

Hope this will help you.

Thanks.

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) said :
#2

Hello vra,
Thanks very much, that's finally what I did, but I was wondering if that was possible without creating a new tree...
Thanks again
Regards