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

I want to update the reason in the chatter while clicking on Cancel button. May I know how to do this?

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

You can use message_post method in cancel button method.
By default odoo will update the message since the state field is moved from sale order to cancelled.
And if you want to add few more content means you can use message_post method.
see the below code for example,

message = _('Enter your messages here')
self.message_post(body=message)

Hope it will help you.

Ảnh đại diện
Huỷ bỏ

Suspect karma faking detected for the user !!

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 21
1567
1
thg 10 24
2007
1
thg 3 23
3223
0
thg 11 22
381
1
thg 7 22
2580