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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
8831
Vues
update context value starting with default_
eg:
context.update({
'default_manager_id': self.manager_id and self.manager_id.id or False
})
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
déc. 18
|
5030 | ||
|
|
2
mai 24
|
3339 | ||
|
|
2
janv. 23
|
4796 | ||
|
|
0
janv. 21
|
2570 | ||
|
|
0
juin 19
|
3228 |
Odoo Tips: https://old.reddit.com/r/learnopenerp/