Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3379 Zobrazení

I have many2many field combined with tree view:

<group>
<field name="cpu_ids" widget="many2many">
<tree>
<field name="name"/>
<field name="frequency_base"/>
<field name="frequency_tb"/>
<field name="cores"/>
<field name="threads"/>
</tree>
</field>
</group>

And when I choose one particular record I can not pick it again for the second time. 
In this example I would like to be able to pick the same CPU couple times.

How do I do this?

Avatar
Zrušit
Nejlepší odpověď

No, you couldn't its default behavior of many2many field.

Avatar
Zrušit
Autor

There is no other way to get this functionality?

you need to adjust your functionality I mean database schema. instead of many2many, one2many can achieve the goal

Autor

How exactly? If I make one2many field instead of many2many every CPU will be assigned only once and only to a single device.

Related Posts Odpovědi Zobrazení Aktivita
2
zář 21
5437
0
říj 20
2137
0
srp 19
2580
1
čvc 19
2884
1
čvn 18
3812