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
Esta pergunta foi sinalizada
2
Respostas
5988
Visualizações
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
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
2
jan. 22
|
2620 | ||
|
|
0
jun. 21
|
3694 | ||
|
|
3
nov. 19
|
14741 | ||
|
|
0
jun. 15
|
4339 | ||
|
|
1
mar. 15
|
4931 |