Skip to Content
Menu
This question has been flagged
1 Reply
7110 Views
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',
}
Avatar
Discard
Best Answer

update context value starting with default_

eg:

context.update({
'default_manager_id': self.manager_id and self.manager_id.id or False
})

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 18
3459
2
May 24
1607
2
Jan 23
3042
0
Jan 21
1323
0
Jun 19
1812