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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
1900
Tampilan
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 !!
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Nov 21
|
1505 | ||
|
1
Okt 24
|
1934 | ||
|
1
Mar 23
|
3147 | ||
|
0
Nov 22
|
381 | ||
|
1
Jul 22
|
2506 |