Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2037 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง

Suspect karma faking detected for the user !!

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 21
1578
1
ต.ค. 24
2018
1
มี.ค. 23
3268
0
พ.ย. 22
381
1
ก.ค. 22
2609