跳至内容
菜单
此问题已终结
1 回复
1963 查看

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
1536
1
10月 24
1966
1
3月 23
3172
0
11月 22
381
1
7月 22
2539