From 5303b58ef63f5dfc96eacfd8f885ce57de9dc7df Mon Sep 17 00:00:00 2001 From: nvi-openerp Date: Tue, 23 Nov 2010 13:57:27 +0100 Subject: [PATCH] [FIX] Bug in welcome message handling. bzr revid: nicolas.vanhoren@openerp.com-20101123125727-5gvg5id0tcau6ebq --- bin/addons/base/publisher_warranty/publisher_warranty.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/addons/base/publisher_warranty/publisher_warranty.py b/bin/addons/base/publisher_warranty/publisher_warranty.py index 64cc7d9affe..cadf131648c 100644 --- a/bin/addons/base/publisher_warranty/publisher_warranty.py +++ b/bin/addons/base/publisher_warranty/publisher_warranty.py @@ -161,7 +161,8 @@ class publisher_warranty_contract(osv.osv): self.pool.get('res.log').create(cr, uid, { - 'name': repr(result["message"]), + 'name': result["message"] if isinstance(result["message"], str) or \ + isinstance(result["message"], unicode) else repr(result["message"]), 'res_model': "Maintenance Notifications", "read": True, "broadcast": True,