Hey I want to log message for specific user on sale order using automated action but I don't know how to add user name in python code so it will automatically pick that user to log message against it
Cette question a été signalée
2
Réponses
5909
Vues
env.user should be the current user and env.uid is the user id
hello
In the odoo framewrok you have a very useful tool to make automated fields. In odoo they are called compute fields
I suggest you read this documentation and learn how you can use this type of smart field.
@ api.depends
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
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é | |
|---|---|---|---|---|
|
|
2
janv. 22
|
2590 | ||
|
|
0
juin 21
|
3633 | ||
|
|
3
nov. 19
|
14623 | ||
|
|
0
juin 15
|
4270 | ||
|
|
1
mars 15
|
4819 |