Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3410 Weergaven

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
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

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

Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
2
sep. 21
5476
0
okt. 20
2168
0
aug. 19
2601
1
jul. 19
2900
1
jun. 18
3851