I want to open a user form view of a specific user.
user = self.env['res.user'].search([], limit=1)
return {
'type': 'ir.actions.act_window',
'name': 'res.users.form',
'res_model': 'res.users',
'res_id': user.id,
'view_type': 'form',
'view_mode': 'form,tree',
'target': 'current',
'context': {'no_breadcrumbs': True},
}
The above code opens res.users.simplified.form instead of res.users.form.
How do i open the res.users.form view instead of the simplified version?