c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06519
[Bug 685713] [NEW] Track Lot -> Upstream Traceability context KeyError
Public bug reported:
In the "Track Lot" form, click on "Upstream Traceability" or "Downstream
Traceability" then getting following errors.
Traceback (most recent call last):
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 57, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 140, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 130, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/addons/stock/stock.py", line 1383, in action_traceability
value=self.pool.get('action.traceability').action_traceability(cr,uid,ids,context)
File "/home/jacara/Pydev-workspace/monoserp/addons/stock/wizard/stock_traceability.py", line 45, in action_traceability
ids = obj.search(cr, uid, [(field, 'in',context['active_ids'])])
KeyError: 'active_ids'
To fix this BUG :
addons/stock/stock.py line 1382:
- value=self.pool.get('action.traceability').action_traceability(cr,uid,ids,context)
+ context.update({'active_ids':ids,'active_id':ids[0]})
+ value=self.pool.get('action.traceability').action_traceability(cr,uid,ids,context)
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/685713
Title:
Track Lot -> Upstream Traceability context KeyError
Status in OpenObject Addons Modules:
New
Bug description:
In the "Track Lot" form, click on "Upstream Traceability" or "Downstream Traceability" then getting following errors.
Traceback (most recent call last):
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 57, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 140, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 130, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/addons/stock/stock.py", line 1383, in action_traceability
value=self.pool.get('action.traceability').action_traceability(cr,uid,ids,context)
File "/home/jacara/Pydev-workspace/monoserp/addons/stock/wizard/stock_traceability.py", line 45, in action_traceability
ids = obj.search(cr, uid, [(field, 'in',context['active_ids'])])
KeyError: 'active_ids'
To fix this BUG :
addons/stock/stock.py line 1382:
- value=self.pool.get('action.traceability').action_traceability(cr,uid,ids,context)
+ context.update({'active_ids':ids,'active_id':ids[0]})
+ value=self.pool.get('action.traceability').action_traceability(cr,uid,ids,context)
Follow ups
References