Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4787 Переглядів

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
1560
0
черв. 21
2694
3
лист. 19
12818
0
черв. 15
3104
1
бер. 15
3719