Skip to Content
Menu
This question has been flagged
1 Atsakyti
2023 Rodiniai

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

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti

Suspect karma faking detected for the user !!

Related Posts Replies Rodiniai Veikla
1
lapkr. 21
1569
1
spal. 24
2011
1
kov. 23
3242
0
lapkr. 22
381
1
liep. 22
2586