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 !..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ..
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
0
zář 19
|
98 | ||
|
1
čvc 17
|
4102 | ||
|
4
srp 16
|
8287 | ||
|
1
bře 16
|
4949 | ||
|
2
bře 16
|
7207 |