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

Is there a way to add domain on one2many field? So far I am returning:

return {

      'domain':{

          'mrp_stock_line_ids':[('id','=',product_id)]

      }

}


but it is not doing anything, also I get no error.



아바타
취소

Hi dean , please describe your method clearly so we can solve your problem if we know

베스트 답변

. you are setting domain on mrp_stock_line_ids field, and want to show (line) id = product_id... .try
[('product_id','=',product_id)]  for a domin...
(guess you want to show only lines wich has selected product... )

아바타
취소
관련 게시물 답글 화면 활동
1
6월 15
4343
0
9월 24
1502
2
5월 24
9633
1
4월 23
5411
7
4월 23
19456