Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2162 Näkymät

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

Avatar
Hylkää
Paras vastaus

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
Hylkää

Suspect karma faking detected for the user !!

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 21
1661
1
lokak. 24
2098
1
maalisk. 23
3407
0
marrask. 22
381
1
heinäk. 22
2733