Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2003 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona

Suspect karma faking detected for the user !!

Post correlati Risposte Visualizzazioni Attività
1
nov 21
1563
1
ott 24
1984
1
mar 23
3205
0
nov 22
381
1
lug 22
2564