Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4981 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
1733
0
giu 21
2830
3
nov 19
13086
0
giu 15
3295
1
mar 15
3878