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

Hello Community

i'm trying to change product route depending on some condition but i'm having hard time figuring out how to check an many2many_checkbox with python code ,is there any way to do so ?

아바타
취소
베스트 답변

Use the special operator [(6,0, IDS)], where IDS is a list of m2m values you would like to enter. E.g. [1,2,9]

Basically, filling m2m doesn't depend upon a used widget

아바타
취소