Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3413 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
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 Răspunsuri Vizualizări Activitate
2
sept. 21
5488
0
oct. 20
2177
0
aug. 19
2610
1
iul. 19
2917
1
iun. 18
3862