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
Această întrebare a fost marcată
2
Răspunsuri
6153
Vizualizări
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
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
2
ian. 22
|
2694 | ||
|
|
0
iun. 21
|
3728 | ||
|
|
3
nov. 19
|
14844 | ||
|
|
0
iun. 15
|
4369 | ||
|
|
1
mar. 15
|
5011 |