← Back to team overview

avanzosc team mailing list archive

[Bug 884010] Re: Adding a manufactured item in SO - debug error

 

** Changed in: avanzosc
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Avanzosc
Developers, which is subscribed to Avanzosc developments.
https://bugs.launchpad.net/bugs/884010

Title:
  Adding a manufactured item in SO - debug error

Status in Avanzosc OpenERP modules:
  Confirmed

Bug description:
  V6.0.3 - just mrp and mrp_master_extension implemented. Trying to create a MO from a SO - when saving SO get following error:
  Environment Information : 
  System : Linux-2.6.38-10-generic-i686-with-Ubuntu-11.04-natty
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 11.04
  Release:	11.04
  Codename:	natty
  Operating System Release : 2.6.38-10-generic
  Operating System Version : #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011
  Operating System Architecture : 32bit
  Operating System Locale : en_NZ.UTF8
  Python Version : 2.7.1+
  OpenERP-Client Version : 6.0.2
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/opt/openerp/openerp-server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/opt/openerp/openerp-server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openerp/openerp-server/bin/addons/audittrail/audittrail.py", line 547, in exec_workflow
      return super(audittrail_objects_proxy, self).exec_workflow(db, uid_orig, model, method, *args, **argv)
    File "/opt/openerp/openerp-server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/openerp-server/bin/osv/osv.py", line 196, in exec_workflow
      res = self.exec_workflow_cr(cr, uid, obj, method, *args)
    File "/opt/openerp/openerp-server/bin/osv/osv.py", line 189, in exec_workflow_cr
      return wf_service.trg_validate(uid, obj, args[0], method, cr)
    File "/opt/openerp/openerp-server/bin/workflow/wkf_service.py", line 80, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/opt/openerp/openerp-server/bin/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 107, in _execute
      wkf_expr.execute(cr, ident, workitem, activity)
    File "/opt/openerp/openerp-server/bin/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/opt/openerp/openerp-server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/opt/openerp/openerp-server/bin/tools/safe_eval.py", line 284, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/opt/openerp/openerp-server/bin/osv/orm.py", line 181, in <lambda>
      return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
    File "/opt/openerp/openerp-server/bin/addons/delivery/sale.py", line 40, in action_ship_create
      result = super(sale_order, self).action_ship_create(cr, uid, ids, *args)
    File "/opt/openerp/openerp-server/bin/addons/sale/sale.py", line 743, in action_ship_create
      wf_service.trg_validate(uid, 'stock.picking', picking_id, 'button_confirm', cr)
    File "/opt/openerp/openerp-server/bin/workflow/wkf_service.py", line 80, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/opt/openerp/openerp-server/bin/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/opt/openerp/openerp-server/bin/workflow/workitem.py", line 107, in _execute
      wkf_expr.execute(cr, ident, workitem, activity)
    File "/opt/openerp/openerp-server/bin/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/opt/openerp/openerp-server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/opt/openerp/openerp-server/bin/tools/safe_eval.py", line 284, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/opt/openerp/openerp-server/bin/osv/orm.py", line 181, in <lambda>
      return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
    File "/opt/openerp/openerp-server/bin/addons/stock/stock.py", line 717, in action_confirm
      todo = self.action_explode(cr, uid, todo, context)
    File "/opt/openerp/openerp-server/bin/addons/mrp/stock.py", line 165, in action_explode
      move_obj._action_explode(cr, uid, move)
    File "/opt/openerp/openerp-server/bin/addons/mrp/stock.py", line 62, in _action_explode
      for line in res[0]:
  IndexError: list index out of range

  Thanks
  Kevin

To manage notifications about this bug go to:
https://bugs.launchpad.net/avanzosc/+bug/884010/+subscriptions


References