Skip to Content
Menú
This question has been flagged
1 Respondre
1902 Vistes

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

Avatar
Descartar
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.

Avatar
Descartar

Suspect karma faking detected for the user !!

Related Posts Respostes Vistes Activitat
1
de nov. 21
1506
1
d’oct. 24
1934
1
de març 23
3147
0
de nov. 22
381
1
de jul. 22
2507