Community mailing list archives

community@mail.odoo.com

Alternative to .sudo()

by
Andre Kurniawan
- 09/21/2016 22:31:04

Hello Community,

Is there any way to use .sudo() method without changing the current user?

I want to keep the current user for create_uid and write_uid field and the user on self.env.user and self.env.uid, so that when I create / modify a record from a button, the record doesn’t specify Administrator.

I recall there is a module to replace .sudo() method, but I can’t find it anywhere now.

-- 
Regards,
Andre