In the calendar module, I see that they return an additional key 'flags'.
Edit: I had the opportunity to test it, since I got a similar task, and I can confirm that the flagstrick does below .
calendar / calendar.py
def open_after_detach_event(self, cr, uid, ids, context=None):
...
return {
'type': 'ir.actions.act_window',
'res_model': 'calendar.event',
'view_mode': 'form',
'res_id': new_id,
'target': 'current',
'flags': {'form': {'action_buttons': True, 'options': {'mode': 'edit'}}}
}
source
share