Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4913 Visualizações

How can i overwrite the value of "self._uid" based on special condition

Eg:- self._uid = int(my_userid) gives an error "AttributeError: can't set attribute"

Any thought on this is appreciated !..

Avatar
Cancelar
Melhor resposta

 use self.sudo(my_userid), it will set the uid value in the self .

self.sudo(my_userid)
Avatar
Cancelar
Autor

Hi Prakash , Thanks for your answer , but this is not compatible with version 7 . Am actually trying to implement this small fix in version 7 . Is there any alternatives or for this .. Thanks ..

Publicações relacionadas Respostas Visualizações Atividade
0
set. 19
98
1
jul. 17
4092
4
ago. 16
8268
1
mar. 16
4942
2
mar. 16
7204