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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
8075
Visualizzazioni
update context value starting with default_
eg:
context.update({
'default_manager_id': self.manager_id and self.manager_id.id or False
})
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
dic 18
|
4377 | ||
|
2
mag 24
|
2657 | ||
|
2
gen 23
|
4154 | ||
|
0
gen 21
|
2054 | ||
|
0
giu 19
|
2619 |
Odoo Tips: https://old.reddit.com/r/learnopenerp/