%s%s %s %s' % (sent_date, sender, quoted_body_html, current_user.signature)
# form dest_partner_ids
dest_partner_ids = [partner.id for partner in message_data.partner_ids]
@@ -221,7 +221,7 @@ class mail_compose_message(osv.TransientModel):
reply_headers['In-Reply-To'] = message_data.message_id
# update the result
result.update({
- 'body_text': reply_body_text,
+ 'body': reply_body,
'body_html': reply_body_html,
'subject': reply_subject,
'attachment_ids': [],
@@ -274,7 +274,7 @@ class mail_compose_message(osv.TransientModel):
partner_ids = [partner.id for partner in mail_wiz.dest_partner_ids]
references = None
headers = {}
- body = mail_wiz.body_html if content_subtype == 'html' else mail_wiz.body_text
+ body = mail_wiz.body_html if content_subtype == 'html' else mail_wiz.body
# get model, active_ids, and check if model is openchatter-enabled
if mass_mail_mode and context.get('active_ids') and context.get('active_model'):
@@ -295,7 +295,7 @@ class mail_compose_message(osv.TransientModel):
for active_id in active_ids:
rendered_subject = self.render_template(cr, uid, subject, active_model, active_id)
rendered_body_html = self.render_template(cr, uid, mail_wiz.body_html, active_model, active_id)
- rendered_body_text = self.render_template(cr, uid, mail_wiz.body_text, active_model, active_id)
+ rendered_body = self.render_template(cr, uid, mail_wiz.body, active_model, active_id)
email_from = self.render_template(cr, uid, mail_wiz.email_from, active_model, active_id)
email_to = self.render_template(cr, uid, mail_wiz.email_to, active_model, active_id)
email_cc = self.render_template(cr, uid, mail_wiz.email_cc, active_model, active_id)
@@ -304,24 +304,24 @@ class mail_compose_message(osv.TransientModel):
# in mass-mailing mode we only schedule the mail for sending, it will be
# processed as soon as the mail scheduler runs.
if mail_thread_enabled:
- active_model_pool.message_append(cr, uid, [active_id], rendered_subject, rendered_body_text, rendered_body_html,
+ active_model_pool.message_append(cr, uid, [active_id], rendered_subject, rendered_body, rendered_body_html,
type=type, content_subtype=content_subtype, state=state, partner_ids=partner_ids,
email_from=email_from, email_to=email_to, email_cc=email_cc,
reply_to=reply_to, references=references, attachments=attachment, headers=headers, context=context)
else:
- mail_message_obj.schedule_with_attach(cr, uid, email_from, mail_tools_to_email(email_to), subject, rendered_body_text,
+ mail_message_obj.schedule_with_attach(cr, uid, email_from, mail_tools_to_email(email_to), subject, rendered_body,
model=mail_wiz.model, email_cc=mail_tools_to_email(email_cc), reply_to=reply_to,
attachments=attachment, references=references, res_id=active_id, partner_ids=partner_ids,
content_subtype=mail_wiz.content_subtype, headers=headers, context=context)
else:
# normal mode - no mass-mailing
if mail_thread_enabled:
- msg_ids = active_model_pool.message_append(cr, uid, active_ids, subject, mail_wiz.body_text, mail_wiz.body_html,
+ msg_ids = active_model_pool.message_append(cr, uid, active_ids, subject, mail_wiz.body, mail_wiz.body_html,
type=type, content_subtype=content_subtype, state=state, partner_ids=partner_ids,
email_from=mail_wiz.email_from, email_to=mail_wiz.email_to, email_cc=mail_wiz.email_cc,
reply_to=mail_wiz.reply_to, references=references, attachments=attachment, headers=headers, context=context)
else:
- msg_ids = [mail_message_obj.schedule_with_attach(cr, uid, mail_wiz.email_from, mail_tools_to_email(mail_wiz.email_to), subject, mail_wiz.body_text,
+ msg_ids = [mail_message_obj.schedule_with_attach(cr, uid, mail_wiz.email_from, mail_tools_to_email(mail_wiz.email_to), subject, mail_wiz.body,
type=type, model=mail_wiz.model, email_cc=mail_tools_to_email(mail_wiz.email_cc), reply_to=mail_wiz.reply_to,
attachments=attachment, references=references, res_id=int(mail_wiz.res_id), partner_ids=partner_ids,
content_subtype=mail_wiz.content_subtype, headers=headers, context=context)]
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml
index e1a1020b6b6..d5ff9a7d10f 100644
--- a/addons/mail/wizard/mail_compose_message_view.xml
+++ b/addons/mail/wizard/mail_compose_message_view.xml
@@ -41,7 +41,7 @@
+ class="oe_mail_compose_message_body"/>
Welcome in OpenERP Partner Channel!${object.email or ''}
- Hello, We are very happy to send Welcome message.
+ Hello, We are very happy to send Welcome message.Template for Silver Partner
@@ -16,7 +16,7 @@
Congratulation! You become now our Silver Partner.${object.email or ''}
- Hello, We are happy to announce that you now become our Silver Partner.
+ Hello, We are happy to announce that you now become our Silver Partner.
@@ -25,7 +25,7 @@
Congratulation! You become our Gold Partner.${object.email or ''}
- Hello, We are happy to announce that you become our Gold Partner.
+ Hello, We are happy to announce that you become our Gold Partner.
diff --git a/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml b/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml
index 0946ff6e129..6545dd93cb2 100644
--- a/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml
+++ b/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml
@@ -40,7 +40,7 @@
- Hello,Thanks for generous interest you have shown in the openERP.Regards,OpenERP Team,
+ Hello,Thanks for generous interest you have shown in the openERP.Regards,OpenERP Team,For OpenERP OnDemand Free Trial 2010
@@ -50,7 +50,7 @@
- Hello,We have very good offer that might suit you.
+ Hello,We have very good offer that might suit you.
We propose you to subscribe to the OpenERP Discovery Day on May 2010.
If any further information required kindly revert back.
We really appreciate your co-operation on this.
@@ -65,7 +65,7 @@
- Hello,Thanks for showing intrest and for subscribing to the OpenERP Discovery Day.
+ Hello,Thanks for showing intrest and for subscribing to the OpenERP Discovery Day.
If any further information required kindly revert back.
I really appreciate your co-operation on this.
Regards,OpenERP Team,
@@ -79,7 +79,7 @@
- Hello,Thanks for showing intrest and buying the OpenERP book.
+ Hello,Thanks for showing intrest and buying the OpenERP book.
If any further information required kindly revert back.
I really appreciate your co-operation on this.
Regards,OpenERP Team,
@@ -92,7 +92,7 @@
- Hello, We have very good offer that might suit you.
+ Hello, We have very good offer that might suit you.
For our gold partners,We are arranging free technical training on june,2010.
If any further information required kindly revert back.
I really appreciate your co-operation on this.
@@ -107,7 +107,7 @@
- Hello, We have very good offer that might suit you.
+ Hello, We have very good offer that might suit you.
For our silver partners,We are paid technical training on june,2010.
If any further information required kindly revert back.
I really appreciate your co-operation on this.
@@ -122,7 +122,7 @@
- Hello, We have very good offer that might suit you.
+ Hello, We have very good offer that might suit you.
For our silver partners,We are offering Gold partnership.
If any further information required kindly revert back.
I really appreciate your co-operation on this.
@@ -137,7 +137,7 @@
- Hello, Thanks for showing intrest and for subscribing to technical training.If any further information required kindly revert back.I really appreciate your co-operation on this.
+ Hello, Thanks for showing intrest and for subscribing to technical training.If any further information required kindly revert back.I really appreciate your co-operation on this.
Regards,OpenERP Team,For subscribing to technical training
diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py
index 1bf3645d646..d493501e1cc 100644
--- a/addons/plugin/plugin_handler.py
+++ b/addons/plugin/plugin_handler.py
@@ -132,7 +132,7 @@ class plugin_handler(osv.osv_memory):
return ('res.partner', partner_id, url)
# Specific to outlook rfc822 is not available so we split in arguments headerd,body,attachemnts
- def push_message_outlook(self, cr, uid, model, headers,res_id=0 ,body_text=False, body_html=False, attachments=False):
+ def push_message_outlook(self, cr, uid, model, headers,res_id=0 ,body=False, body_html=False, attachments=False):
# ----------------------------------------
# solution 1
# construct a fake rfc822 from the separated arguement
@@ -160,6 +160,6 @@ class plugin_handler(osv.osv_memory):
attach_ids.append(ir_attachment_obj.create(cr, uid, vals))
mail_ids = mail_message.search(cr, uid, [('message_id','=',message_id),('res_id','=',res_id),('model','=',model)])
if mail_ids:
- ids = mail_message.write(cr, uid,mail_ids[0],{ 'attachment_ids': [(6, 0, attach_ids)],'body_text':body_text,'body_html':body_html})
+ ids = mail_message.write(cr, uid,mail_ids[0],{ 'attachment_ids': [(6, 0, attach_ids)],'body':body,'body_html':body_html})
url = self._make_url(cr, uid, res_id, model)
return (model, res_id, url)
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py
index 2f7458627e9..106ea195571 100644
--- a/addons/project_issue/project_issue.py
+++ b/addons/project_issue/project_issue.py
@@ -454,7 +454,7 @@ class project_issue(base_stage, osv.osv):
custom_values.update({
'name': msg.get('subject') or _("No Subject"),
- 'description': msg.get('body_text'),
+ 'description': msg.get('body'),
'email_from': msg.get('from'),
'email_cc': msg.get('cc'),
'user_id': False,
@@ -476,16 +476,16 @@ class project_issue(base_stage, osv.osv):
if update_vals is None: update_vals = {}
# Update doc values according to the message
- update_vals['description'] = msg.get('body_text', '')
+ update_vals['description'] = msg.get('body', '')
if msg.get('priority'):
update_vals['priority'] = msg.get('priority')
- # Parse 'body_text' to find values to update
+ # Parse 'body' to find values to update
maps = {
'cost': 'planned_cost',
'revenue': 'planned_revenue',
'probability': 'probability',
}
- for line in msg.get('body_text', '').split('\n'):
+ for line in msg.get('body', '').split('\n'):
line = line.strip()
res = tools.misc.command_re.match(line)
if res and maps.get(res.group(1).lower(), False):
diff --git a/addons/project_mailgate/project_mailgate.py b/addons/project_mailgate/project_mailgate.py
index cf2bc120fbf..3096a7381e6 100644
--- a/addons/project_mailgate/project_mailgate.py
+++ b/addons/project_mailgate/project_mailgate.py
@@ -50,7 +50,7 @@ class project_tasks(osv.osv):
maps = {
'cost':'planned_hours',
}
- for line in msg['body_text'].split('\n'):
+ for line in msg['body'].split('\n'):
line = line.strip()
res = tools.misc.command_re.match(line)
if res:
diff --git a/addons/purchase/edi/purchase_order_action_data.xml b/addons/purchase/edi/purchase_order_action_data.xml
index b97da91fa1d..95e6adda3d9 100644
--- a/addons/purchase/edi/purchase_order_action_data.xml
+++ b/addons/purchase/edi/purchase_order_action_data.xml
@@ -108,7 +108,7 @@
]]>
-
]]>
-