If you're talking about calling superuser rights for another user through Python:
self.sudo(user.id) self.sudo() # This will use the SUPERUSER_ID by default # or self.env['res.partner'].sudo().create(vals)
There is some documentation about this, which you can find here: http://odoo-new-api-guide-line.readthedocs.org/en/latest/environment.html
If you're talking about creating a new user, from the view, you should simply create a new user and grant it all rights under settings > users.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/28/15, 9:31 AM|
|Seen: 1598 times|
|Last updated: 3/17/16, 12:02 PM|