تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1986 أدوات العرض

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 !!

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 21
1559
1
أكتوبر 24
1977
1
مارس 23
3199
0
نوفمبر 22
381
1
يوليو 22
2559