コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3454 ビュー

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?

アバター
破棄
最善の回答

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

アバター
破棄
著作者

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

著作者

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

関連投稿 返信 ビュー 活動
2
9月 21
5535
0
10月 20
2197
0
8月 19
2673
1
7月 19
2957
1
6月 18
3901