Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4853 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 22
1634
0
มิ.ย. 21
2752
3
พ.ย. 19
12918
0
มิ.ย. 15
3193
1
มี.ค. 15
3782