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

context={ 'default_model': 'res.users', 'default_res_id': uid, 'needaction_menu_ref': ['mail.mail_tomefeeds', 'mail.mail_starfeeds'] }

in this context , header "needaction_menu_ref" has two values 'mail.mail_tomefeeds', 'mail.mail_starfeeds'. in my case, want to pass multiple headers like context={ 'default_model': 'res.partner', 'default_res_id': uid, ['search_default_author_id': active_id ,'search_default_partner_ids': name]}

is it possible?

아바타
취소
베스트 답변

I am not exactly what you are trying to do. If you want to have the default search options search_default_author_id and search_default_partner_ids included into your context, just use:

 context={ 'default_model': 'res.partner', 'default_res_id': uid, 'search_default_author_id': active_id ,'search_default_partner_ids': name}
아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
4928
0
2월 21
5096
1
1월 25
1279
0
7월 22
2390
3
9월 20
3057