I have used 'flags': {'initial_mode': 'edit'} to open record in edit mode in Odoo 10.
but its not working in odoo 12. Do we have any alternative of this.
res = {
'name': action.name,
'help': action.help,
'type': action.type,
'views': [(form_id, 'form')],
'view_mode': 'action.view_mode',
'target': action.target,
'context': action.context,
'res_model': action.res_model,
'flags': {'initial_mode': 'edit'},
'res_id': record.id
}