Skip to Content
Menu
This question has been flagged
2 Replies
3756 Views

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
Discard
Best Answer

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
2
Jan 22
991
0
Jun 21
1989
3
Nov 19
11399
0
Jun 15
2469
1
Mar 15
3090