From 8c556b30f5e4b4fcd42e499e431847d8426f6e78 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Sun, 21 Dec 2008 02:08:46 +0100 Subject: [PATCH] [FIX] Use the wizard exception bzr revid: stephane@tinyerp.com-20081221010846-08srtgte4o1l97ka --- addons/project/wizard/close_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/wizard/close_task.py b/addons/project/wizard/close_task.py index d4b36b9e47c..ecd209fa217 100644 --- a/addons/project/wizard/close_task.py +++ b/addons/project/wizard/close_task.py @@ -44,7 +44,7 @@ def email_send(cr, uid, ids, to_adr, description, context={}): from_adr = task.user_id.address_id.email signature = task.user_id.signature else: - raise osv.except_osv(_('Error'), _("Couldn't send mail because your email address is not configured!")) + raise wizard.except_wizard(_('Error'), _("Couldn't send mail because your email address is not configured!")) if to_adr: val = { @@ -60,7 +60,7 @@ def email_send(cr, uid, ids, to_adr, description, context={}): body = u'%s\n%s\n%s\n\n-- \n%s' % (header, description, footer, signature) email(from_adr, [to_adr], subject, body.encode('utf-8'), email_bcc=[from_adr]) else: - raise osv.except_osv(_('Error'), _("Couldn't send mail because the contact for this task (%s) has no email address!") % contact.name) + raise wizard.except_wizard(_('Error'), _("Couldn't send mail because the contact for this task (%s) has no email address!") % contact.name) class wizard_close(wizard.interface): def _check_complete(self, cr, uid, data, context):