[IMP] improved create msg.
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Fri, 3 Jan 2014 07:03:03 +0000 (12:33 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Fri, 3 Jan 2014 07:03:03 +0000 (12:33 +0530)
bzr revid: tpa@tinyerp.com-20140103070303-nec0nb3l1ivzq90g

addons/crm/crm_lead.py

index 9a08b0d..e6e7e91 100644 (file)
@@ -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)
 
     # ----------------------------------------