Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4995 Vues

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
Ignorer
Meilleure réponse

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

self.sudo(my_userid)
Avatar
Ignorer
Auteur

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 ..

Publications associées Réponses Vues Activité
0
sept. 19
98
1
juil. 17
4193
4
août 16
8408
1
mars 16
5019
2
mars 16
7287