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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
8112
Vistas
update context value starting with default_
eg:
context.update({
'default_manager_id': self.manager_id and self.manager_id.id or False
})
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
dic 18
|
4408 | ||
|
2
may 24
|
2677 | ||
|
2
ene 23
|
4186 | ||
|
0
ene 21
|
2086 | ||
|
0
jun 19
|
2666 |
Odoo Tips: https://old.reddit.com/r/learnopenerp/