I want to update the reason in the chatter while clicking on Cancel button. May I know how to do this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
1963
查看
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 |