[FIX] Specify the osv class for the except_osv exception

lp bug: https://launchpad.net/bugs/307319 fixed

bzr revid: stephane@tinyerp.com-20081212005347-o71d4vzfrogih3xs
This commit is contained in:
Stephane Wirtel 2008-12-12 01:53:47 +01:00
parent 5cc55266a7
commit 4c29b48db7
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
##############################################################################
import time
import netsvc
from osv import fields,osv,orm
from osv import fields,osv
from tools.translate import _
class delivery_carrier(osv.osv):
@ -124,7 +124,7 @@ class delivery_grid(osv.osv):
ok = True
break
if not ok:
raise except_osv(_('No price avaible !'), _('No line matched this order in the choosed delivery grids !'))
raise osv.except_osv(_('No price avaible !'), _('No line matched this order in the choosed delivery grids !'))
return price