Odoo Help


How to make to inline views for the same model?

David Gascueña Ferré
on 8/13/14, 8:35 PM 904 views

Hi, I want to display two notebook pages. In each one, I want a tree of a many2many field (municipio). It works fine with each page separately, but when I put both pages, the second one overrides the first one.

Is there any way I can make this work?

                            <page string="Servicios">
                                <field name="municipio" >
                                    <tree version="7.0" editable="bottom">
                                        <field name="nombre"/>
                                        <field name="org_pliego" string="Pliego"/>
                                        <field name="org_mejoras" string="Mejoras"/>
                            <page string="Voluminosos">
                                <field name="municipio" >
                                    <tree version="7.0">
                                        <field name="nombre"/>
                                        <field name="puerta_pliego" string="Puerta a puerta: Pliego"/>
                                        <field name="puerta_mejoras" string="Mejoras"/>

Sorry, but it seems I can't comment your answer, Valsily. The duplicated field doesn't seem to be the problem, as I have removed it, and the problem persists. It has to be a problem with the tree inline declaration, as if there can be only one tree per model, and I am defining two, so the second one overrides the first.

David Gascueña Ferré
on 8/14/14, 5:52 AM

Vasiliy Birukov

--Vasiliy Birukov--
| 7 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 8/14/14, 2:31 AM

You can't use one field twice in one view. You need create duplicate of your filed by defining functional field that will return value of your first filed.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/13/14, 8:35 PM
Seen: 904 times
Last updated: 3/16/15, 8:10 AM