I want to update the reason in the chatter while clicking on Cancel button. May I know how to do this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
1935
Widoki
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 !!
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lis 21
|
1516 | ||
|
1
paź 24
|
1953 | ||
|
1
mar 23
|
3157 | ||
|
0
lis 22
|
381 | ||
|
1
lip 22
|
2515 |