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

Hello,

I wanted that my object have a relation  many2one with email.template and the domain of this field is just the email.template that have the model_id with the value 'hr.evaluation.interview'. 

I tryed like this:

<field name="template_id" domain="[('model_id','=','hr.evaluation.interview')]" context="{'default_model_id':'hr.evaluation.interview' }"/>

But it craches: 

invalid input syntax for integer: "hr.evaluation.interview"

I try like this <field name="template_id" domain="[('model_id','=','hr.evaluation.interview')]" context="{'default_model_id':ref('hr.evaluation.interview') }"/>

and like this : 

<field name="template_id" domain="[('model_id','=',[ref('mb_boldint_hr_evaluation.model_hr_evaluation_interview')])]" context="{'default_model_id': [ref('mb_boldint_hr_evaluation.model_hr_evaluation_interview')] }"/>

But it doesn't know the ref. 

Do you know how can I do this? 

Thanks

아바타
취소
관련 게시물 답글 화면 활동
3
3월 15
10802
0
3월 15
3384
1
3월 15
8964
1
2월 24
13523
1
3월 15
7638