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
5226 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
1971
0
cze 21
3088
3
lis 19
13514
0
cze 15
3597
1
mar 15
4147