Skip to Content
Menú
This question has been flagged
2 Respostes
4843 Vistes

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

Avatar
Descartar
Best Answer

env.user should be the current user and env.uid is the user id 
 

Avatar
Descartar
Best Answer


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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de gen. 22
1623
0
de juny 21
2741
3
de nov. 19
12899
0
de juny 15
3182
1
de març 15
3777