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

Openerp hide some rows of one2many field

By
nadia
on 2/25/15, 11:37 AM 661 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

--Francesco OpenCode--
3608
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

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

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: 2/25/15, 11:37 AM
Seen: 661 times
Last updated: 8/9/16, 6:50 AM