[IMP] crm,crm_claim,crm_helpdesk,hr_recruitment,project_issue,project_mailgate: improvement in message_new()

bzr revid: rha@tinyerp.com-20110502065849-19nilmvniw28n8ts
This commit is contained in:
Rifakat Haradwala (Open ERP) 2011-05-02 12:28:49 +05:30
parent 76b0bb0137
commit 96a33521da
6 changed files with 24 additions and 0 deletions

View File

@ -378,6 +378,10 @@ class crm_lead(crm_case, osv.osv):
references = msg.get('references', False) or msg.get('in-reply-to', False),
attach = attachments,
email_date = msg.get('date'),
body_html= msg.get('body_html'),
sub_type = msg.get('sub_type'),
headers = msg.get('headers'),
priority = msg.get('priority', False),
context = context)
return res_id

View File

@ -215,6 +215,10 @@ class crm_claim(crm.crm_case, osv.osv):
references = msg.get('references', False) or msg.get('in-reply-to', False),
attach = attachments,
email_date = msg.get('date'),
body_html= msg.get('body_html'),
sub_type = msg.get('sub_type'),
headers = msg.get('headers'),
priority = msg.get('priority', False),
context = context)
return res_id

View File

@ -138,6 +138,10 @@ class crm_helpdesk(crm.crm_case, osv.osv):
references = msg.get('references', False) or msg.get('in-reply-to', False),
attach = attachments,
email_date = msg.get('date'),
body_html= msg.get('body_html'),
sub_type = msg.get('sub_type'),
headers = msg.get('headers'),
priority = msg.get('priority', False),
context = context)
return res_id

View File

@ -338,6 +338,10 @@ class hr_applicant(crm.crm_case, osv.osv):
references = msg.get('references', False) or msg.get('in-reply-to', False),
attach = attachments,
email_date = msg.get('date'),
body_html= msg.get('body_html'),
sub_type = msg.get('sub_type'),
headers = msg.get('headers'),
priority = msg.get('priority', False),
context = context)
return res_id

View File

@ -420,6 +420,10 @@ class project_issue(crm.crm_case, osv.osv):
references = msg.get('references', False) or msg.get('in-reply-to', False),
attach = attachments,
email_date = msg.get('date'),
body_html= msg.get('body_html'),
sub_type = msg.get('sub_type'),
headers = msg.get('headers'),
priority = msg.get('priority', False),
context = context)
self.convert_to_bug(cr, uid, [res_id], context=context)
return res_id

View File

@ -65,6 +65,10 @@ class project_tasks(osv.osv):
references = msg.get('references', False) or msg.get('in-reply-to', False),
attach = attachments,
email_date = msg.get('date'),
body_html= msg.get('body_html'),
sub_type = msg.get('sub_type'),
headers = msg.get('headers'),
priority = msg.get('priority', False),
context = context)
return res_id