Currently if user send mail to project alias odoo adds message body to task or issue as a comment. How to make odoo store message body as a taks or issue description?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Try to update the function message_post of a related model. An example for project.issue:
@api.multi
@api.returns('mail.message', lambda value: value.id)
def message_post(self, subtype=None, **kwargs):
self.ensure_one()
mail_message = super(ProjectIssue, self).message_post(subtype=subtype, **kwargs)
if kwargs.get('body'):
if self.description:
description = self.description + kwargs.get('body')
else:
description = kwargs.get('body')
self.sudo().write({'description': description)
return mail_message
This code would add all the messages bodies to description. You may add other conditions to restrict messages, e.g by subtype or when authors are portal
P.S. for newly created issues update the function message_new
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
أبريل 18
|
3125 | ||
|
0
فبراير 18
|
89 | ||
|
2
أغسطس 22
|
5159 | ||
|
3
يناير 19
|
9263 | ||
|
3
يونيو 18
|
4718 |