跳至內容
選單
此問題已被標幟
2 回覆
4684 瀏覽次數

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
1503
0
6月 21
2618
3
11月 19
12628
0
6月 15
3039
1
3月 15
3667