diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2008-12-23 07:34:58 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2008-12-23 07:34:58 +0100 |
| commit | f48e9d4b0576dbd3b4ecee12664ca807a10fbc55 (patch) | |
| tree | 9a08c0e482906f4f797c46ad96d1d3edcf7b143f /addons/project/wizard/close_task.py | |
| parent | bbf26a2dfc9b67d12f564c61e16d354fa0ac694a (diff) | |
| parent | 7fcf65d7c545b1f966cac1496545a69312ffde4f (diff) | |
merge
bzr revid: fp@tinyerp.com-20081223063458-cafhu07hjxe0r6ak
Diffstat (limited to 'addons/project/wizard/close_task.py')
| -rw-r--r-- | addons/project/wizard/close_task.py | 4 |
1 files 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): |
