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
Bu soru işaretlendi
2
Cevaplar
6014
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
2
Oca 22
|
2629 | ||
|
|
0
Haz 21
|
3702 | ||
|
|
3
Kas 19
|
14754 | ||
|
|
0
Haz 15
|
4345 | ||
|
|
1
Mar 15
|
4942 |