[7.0] Merging purchase order will fail when first one has no origin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned |
Bug Description
WARNING This affects only OCB
Introduced a bug:
When first purchase order has no origin, it will raise the following error:
OpenERP Server Error Client Traceback (most recent call last):
File ".../webclient/
response[
File ".../webclient/
action = self._call_kw(req, model, method, args, {})
File ".../webclient/
return getattr(
File ".../webclient/
result = self.proxy.
File ".../webclient/
result = self.session.
File ".../webclient/
raise xmlrpclib.
Server Traceback (most recent call last):
File ".../webclient/
return openerp.
File ".../server/
result = ExportService.
File ".../server/
res = fn(db, uid, *params)
File ".../server/
return self.execute(db, uid, obj, method, *args, **kw or {})
File ".../server/
return f(self, dbname, *args, **kwargs)
File ".../server/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File ".../server/
return getattr(object, method)(cr, uid, *args, **kw)
File ".../addons/
allorders = order_obj.
File ".../addons/
if not porder.origin in order_infos[
Related branches
- Holger Brunn (Therp): Disapprove
- Pedro Manuel Baeza: Approve (code review)
- Yann Papouin: Approve
- Ronald Portier (Therp): Approve
-
Diff: 17 lines (+5/-2)1 file modifiedpurchase/purchase.py (+5/-2)
description: | updated |