Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4967 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

env.user should be the current user and env.uid is the user id 
 

Awatar
Odrzuć
Najlepsza odpowiedź


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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 22
1718
0
cze 21
2824
3
lis 19
13071
0
cze 15
3284
1
mar 15
3872