Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4810 Представления

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
1571
0
июн. 21
2698
3
нояб. 19
12833
0
июн. 15
3128
1
мар. 15
3748