콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
5789
0
10월 20
2454
0
8월 19
2958
1
7월 19
3167
1
6월 18
4128