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

Hello Community,

I have a model named 'A' it has a many2one relation (a) with another model 'B' and another relation one2many with a model 'C'. In 'C' there is a many2one field 'c'. In 'B' i have a one2many field 'b'. I want to set a domain for the field 'c' like this: domain="[('id','in',parent.a.b)]" , i've put this on the xml view but i got the following javascript error : Uncaught Error:

AttributeError: object has no attribute 'b'

 http://localhost:8069/web/static/lib/py.js/lib/py.js:757

...and i don't know how to set this domain using python code.

Thanks.

아바타
취소
관련 게시물 답글 화면 활동
1
4월 25
3954
3
12월 22
11884
5
4월 24
42515
6
4월 24
39442
3
3월 24
10906