c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06586
[Bug 685713] Re: Track Lot -> Upstream Traceability context KeyError
Hello Jacara,
I have checked your bug specification at my end but i am not able to reproduced it.
would you please provide more information with proper steps?
Thanks
** Changed in: openobject-addons
Status: New => Incomplete
--
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:
Incomplete
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)
References