diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 566885e3c46..f479ed8d3a6 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -827,9 +827,10 @@ class crm_lead(crm_case, osv.osv): def unlink(self, cr, uid, ids, context=None): for lead in self.browse(cr, uid, ids, context): - if (not lead.section_id.allow_unlink) and (lead.state <> 'draft'): - raise osv.except_osv(_('Warning !'), - _('You can not delete this lead. You should better cancel it.')) + if (not lead.section_id.allow_unlink) and (lead.state != 'draft'): + raise osv.except_osv(_('Error'), + _("You cannot delete lead '%s'; it must be in state 'Draft' to be deleted. " \ + "You should better cancel it, instead of deleting it.") % lead.name) return super(crm_lead, self).unlink(cr, uid, ids, context)