Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2021 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér

Suspect karma faking detected for the user !!

Related Posts Besvarelser Visninger Aktivitet
1
nov. 21
1569
1
okt. 24
2011
1
mar. 23
3240
0
nov. 22
381
1
jul. 22
2583