context = dict(self._context) or {}
context.update({
'manager_id': self.manager_id and self.manager_id.id or False
})
return {
'type': 'ir.actions.act_window',
'res_model': 'abc',
'views': [[self.env.ref('management_module.management_return_form_view').id, 'form']],
'context': context,
'target': 'new',
}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
8074
Visualizações
update context value starting with default_
eg:
context.update({
'default_manager_id': self.manager_id and self.manager_id.id or False
})
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
1
dez. 18
|
4377 | ||
|
2
mai. 24
|
2657 | ||
|
2
jan. 23
|
4154 | ||
|
0
jan. 21
|
2054 | ||
|
0
jun. 19
|
2619 |
Odoo Tips: https://old.reddit.com/r/learnopenerp/