delivery: global name 'except_osv' is not defined if a carrier has no valid grid defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Instead of jsut displaying the proper error message, it when trying to add a delivery cost through the wirzard in a quotation, if the carrier has no grid list defined, we get this ugly stack:
File "/home/
r = m(*msg[2:])
File "/home/
return self._execute(db, uid, wiz_id, datas, action, context)
File "/home/
return wiz.execute(db, uid, self.wiz_
File "/home/
res = self.execute_cr(cr, uid, data, state, context)
File "/home/
action_res = action(self, cr, uid, data, context)
File "/home/
'price_unit': grid_obj.
File "/home/
return self.get_
File "/home/
raise except_osv(_('No price avaible !'), _('No line matched this order in the choosed delivery grids !'))
NameError: global name 'except_osv' is not defined
The fix should be simple: just replace that deprecated except_osv API call! Then it will be more obvious for the users why the delievry cost can't be added unless he defines a grid.
Raphaël Valyi
Related branches
Changed in openobject-addons: | |
status: | New → Fix Released |