[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:
parent
5cc55266a7
commit
4c29b48db7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue