コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
7317 ビュー

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
5099
1
1月 25
1284
0
7月 22
2401
3
9月 20
3060