Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3449 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

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

Autore

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

Post correlati Risposte Visualizzazioni Attività
2
set 21
5507
0
ott 20
2183
0
ago 19
2641
1
lug 19
2934
1
giu 18
3894