Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4758 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất


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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 22
1543
0
thg 6 21
2683
3
thg 11 19
12792
0
thg 6 15
3085
1
thg 3 15
3702