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 !..
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 !..
use self.sudo(my_userid), it will set the uid value in the self .
self.sudo(my_userid)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 ..
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
0
sept. 19
|
98 | |||
|
1
juil. 17
|
6038 | |||
|
4
août 16
|
10875 | |||
|
1
mars 16
|
7185 | |||
|
2
mars 16
|
9078 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.