Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
7338 Visualizações

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?

Avatar
Cancelar
Melhor resposta

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}
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mar. 15
4934
0
fev. 21
5112
1
jan. 25
1295
0
jul. 22
2410
3
set. 20
3065