From 80a73e723797bc373b4f84812e2e285d8ced59e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 27 Aug 2012 17:32:57 +0200 Subject: [PATCH] [FIX] sale: fixed demo data. Added a protection against void body in final body creation. bzr revid: tde@openerp.com-20120827153257-astw7738j6qdqc8l --- addons/mail/mail_followers.py | 2 +- addons/sale/sale_demo.xml | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 2045df49d70..129f4b479b7 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -106,7 +106,7 @@ class mail_notification(osv.Model): :param message: browse record on source mail.message """ subject = msg.subject or '%s posted a comment on %s' % (msg.author_id.name, msg.record_name) - body = msg.body + body = msg.body or '' author_signature = msg.author_id.user_ids[0].signature if author_signature: body += '
%s
' % (author_signature) diff --git a/addons/sale/sale_demo.xml b/addons/sale/sale_demo.xml index 192d73472c4..c8a3bb74774 100644 --- a/addons/sale/sale_demo.xml +++ b/addons/sale/sale_demo.xml @@ -304,36 +304,33 @@ sale.order - plain - Hi, + Hi, I have a confusion for pricing of Services, I have heard there is a discount above 25 hours. Can you clarify please? comment - + sale.order - plain - Hello, + Hello, Sorry but that scheme is not available for now, We would like to know if you confirm the quotation with pricing we sent to you. Thanks, Sales Department comment - + sale.order - plain - Ok, fine, we will intimate you after discussing with our team. + Ok, fine, we will intimate you after discussing with our team. comment - +