Skip to Content
Menu
This question has been flagged
1 Reply
5311 Views
Best Answer

Hello MouBou,


Try this:-

<group string="One 2 Many String Name">

    <field name="one2many_field" nolabel="1">

        <tree editable="bottom">

            <field name="one2many_class_field1"/>

            <field name="one2many_class_field2"/>

            <field name="one2many_class_field3"/>

        </tree>

    </field>

</group>


Update Ans :-

<group string="One 2 Many String Name">

    <field name="one2many_field" nolabel="1">

         <tree>

         One2many class fields.

         </tree>

         <form string="Form">

            <group>                       

                <field name="one2many_class_field1"/>

                <field name="one2many_class_field2"/>

                <field name="one2many_class_field3"/>

           </group>

        </form>

    </field>

</group>  



Hope it will helps you.

Thanks,

Avatar
Discard
Author

Thank you jignesh ,but is there a way to show form instead of tree ?

Hello You can also open form from tree view. See my updated code. Thanks,