Odoo Help

Welcome!

This community 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.

0

How to make to inline views for the same model?

By
David Gascueña Ferré
on 8/13/14, 8:35 PM 552 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?

                        <notebook>
                            <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"/>
                                    </tree>
                                </field>
                            </page>
                            <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"/>
                                    </tree>
                                </field>
                            </page>
                        </notebook>

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
1

Vasiliy Birukov

--Vasiliy Birukov--
3446
| 6 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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