Community mailing list archives

Re: Alternative to .sudo()

Shine IT Co.,Ltd., Tony Gu
- 09/21/2016 23:07:44
Hi Andre,

I guess this is what you request for.

Best regards,

Tony Gu
在 2016年9月22日,上午10:33,vak0160 <> 写道:

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.


Post to: