← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 685713] Re: Track Lot -> Upstream Traceability context KeyError

 

Hello Jacara,

I have checked your bug specification again with latest updated code but there seems no error.
If problem persist,you can reopen this with proper steps.

Thanks.

** Changed in: openobject-addons
       Status: Incomplete => Invalid

-- 
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:
  Invalid

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