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
To pytanie dostało ostrzeżenie
2
Odpowiedzi
5912
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
2
sty 22
|
2591 | ||
|
|
0
cze 21
|
3634 | ||
|
|
3
lis 19
|
14624 | ||
|
|
0
cze 15
|
4270 | ||
|
|
1
mar 15
|
4819 |