تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4797 أدوات العرض

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
يناير 22
1564
0
يونيو 21
2697
3
نوفمبر 19
12825
0
يونيو 15
3110
1
مارس 15
3721