Odoo Help

0

Openerp hide some rows of one2many field

By
nadia
on 2/25/15, 11:37 AM 1,070 views

I have a one2many field named line_ids in my view:

i want to display some rows and not others but i need them all in a calculation.
the question is how to hide some rows in one2many

because i need all the rows for the calculation and i don't want to bother the user with all of the rows

I need to display just the rows with a field "display" value as True.

<!-- language: lang-xml -->

    <field name="line_ids"   >
        <tree string="Lignes de Rubriques" editable="bottom">
            <field name="category_id"/>
            <field name="code"   invisible="1"/>
            <field name="a_afficher" />
            <field name="sequence" />
            <field name="display" />
            <field name="total" invisible="1" />
            <field name="soumise_CNSS" string="CNSS"  invisible="1"/>
            <field name="soumise_AMO" string="AMO"  invisible="1"/>
            <field name="soumise_IR" string="IR" invisible="1"/>
        </tree>
    </field>

How do I achieve this? Thank you :)

0
Francesco OpenCode
On 8/9/16, 6:50 AM

You can use 2 One2Many. In one show filtered rows and in another one (hidden for user) keep all the rows

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.

Register

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)

Stats

Asked: 2/25/15, 11:37 AM
Seen: 1070 times
Last updated: 8/9/16, 6:50 AM