Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1949 Представления

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

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить

Suspect karma faking detected for the user !!

Related Posts Ответы Просмотры Активность
1
нояб. 21
1526
1
окт. 24
1961
1
мар. 23
3167
0
нояб. 22
381
1
июл. 22
2536