From 8ccf57fe9d76fd67b239de259b48308a2f15abf6 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 20 Mar 2013 15:05:28 +0100 Subject: [PATCH] [IMP] mail: dynamic_help fix bzr revid: chm@openerp.com-20130320140528-5nambcm6ftpamove --- addons/mail/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 4d529e1162b..a66c1b97b6b 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -106,7 +106,7 @@ class mail_thread(osv.AbstractModel): email = "%s@%s" % (alias.alias_name, alias.alias_domain) return "%s %s" % (_("

Click here to add a new %s or send an email, for example, to: %s

") % (context.get('dynamic_help_documents', _("documents")), email, email), help or "") - if context.get('dynamic_help_documents', None) and help.find("oe_view_nocontent_create") == -1: + if context.get('dynamic_help_documents', None) and not help or help.find("oe_view_nocontent_create") == -1: return "%s %s" % (_("

Click here to add a new %s

") % context.get('dynamic_help_documents', _("documents")), help or "") return help