跳至內容
選單
此問題已被標幟
1 回覆
1983 瀏覽次數

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 !!

相關帖文 回覆 瀏覽次數 活動
1
11月 21
1554
1
10月 24
1974
1
3月 23
3197
0
11月 22
381
1
7月 22
2551