Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4696 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Risposta migliore


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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 22
1513
0
giu 21
2619
3
nov 19
12644
0
giu 15
3044
1
mar 15
3675