From 6a2a2e75c549cebec17d229cfb332cf52e01e94d Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Fri, 3 Jan 2014 12:33:03 +0530 Subject: [PATCH] [IMP] improved create msg. bzr revid: tpa@tinyerp.com-20140103070303-nec0nb3l1ivzq90g --- addons/crm/crm_lead.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 9a08b0d8d43..e6e7e91be6c 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -968,6 +968,9 @@ class crm_lead(format_address, osv.osv): def get_empty_list_help(self, cr, uid, help, context=None): context['empty_list_help_model'] = 'crm.case.section' context['empty_list_help_id'] = context.get('default_section_id', None) + context['empty_list_help_document_name'] = _("opportunity") + if context.get('default_type') == 'lead': + context['empty_list_help_document_name'] = _("lead") return super(crm_lead, self).get_empty_list_help(cr, uid, help, context=context) # ----------------------------------------