跳至内容
菜单
此问题已终结
2 回复
4603 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
2
1月 22
1429
0
6月 21
2543
3
11月 19
12522
0
6月 15
2955
1
3月 15
3613