Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4743 Näkymät

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
Hylkää
Paras vastaus

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

Avatar
Hylkää
Paras vastaus


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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
tammik. 22
1535
0
kesäk. 21
2648
3
marrask. 19
12756
0
kesäk. 15
3076
1
maalisk. 15
3697