This question has been flagged
1 Reply
6220 Views

Hi,

my one2many list shows many lines with 3 fields. I want to show the same list with not repeated lines.Is it possible?

EXAMPLE:

<field colspan="4" name="lineas" nolabel="1" widget="one2many_list">
                                <tree string="Lineas">
                                    <field name="prodlot_id"/>
                                    <field name="numero_ticket"/>
                                    <field name="numero_guia"/>
                                </tree>
                            </field>

11 2 3.

12 5 6.

11 2 3.

Should be:

11 2 3.

12 5 6.

Thank you so much!

Avatar
Discard
Best Answer

Imho this is not possible with the domain functionality.

I also do not see any functional reason why this requirement would be useful (otherwise, can you give an example?).

What you can do: Create a function-field of type one2many where you filter out all duplicate records. You also have to define an fnct_inv method if the field should be writable.

Avatar
Discard