Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7311 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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}
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
4928
0
thg 2 21
5096
1
thg 1 25
1280
0
thg 7 22
2392
3
thg 9 20
3058