← Back to team overview

openerp-india team mailing list archive

[Bug 1028264] Re: [trunk] 6.2 - Manufacturing error on Produce and Confirm stage (with Analytic Accounts)

 

Hello,

 It has been fixed on branch lp:~openerp-dev/openobject-addons/trunk-
bug-1028264-rmu  with Following Revision Number and Revision ID.

Revision Number: 7094
Revision  ID: rmu@xxxxxxxxxxx-20120724100748-zfhwpxwm9en5iw7a

This will soon merge with trunk

 Thank you!

** Changed in: openobject-addons
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1028264

Title:
  [trunk] 6.2 - Manufacturing error on Produce and Confirm stage (with
  Analytic Accounts)

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Hello,

  How to replicate the error:

  - Use routing with 2+ work centers
  - Put analytic accounts on work centers - Hour Account, Cycle Account, Analytic Journal and General Account
  - Run all stages of production till "Produce"

  On stage, when I would like to produce and click confirmation, the
  following error is arising:

  
  Your version of OpenERP is unsupported. Support & maintenance services are available here: OpenERP Entreprise.
  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/opt/openerp-web/addons/web/common/http.py", line 181, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/opt/openerp-web/addons/web/controllers/main.py", line 1039, in call_button
      action = self.call_common(req, model, method, args, domain_id, context_id)
    File "/opt/openerp-web/addons/web/controllers/main.py", line 983, in call_common
      return self._call_kw(req, model, method, args, {})
    File "/opt/openerp-web/addons/web/controllers/main.py", line 997, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/opt/openerp-web/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/opt/openerp-web/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/opt/openerp-web/addons/web/common/http.py", line 623, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/opt/openerp-web/addons/web/common/http.py", line 608, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/opt/openobject-server/openerp/netsvc.py", line 362, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/openobject-server/openerp/service/web_services.py", line 586, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openobject-server/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/opt/openobject-server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openobject-server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openobject-addons/mrp/wizard/mrp_product_produce.py", line 67, in do_produce
      data.product_qty, data.mode, context=context)
    File "/opt/openobject-addons/mrp/mrp.py", line 796, in action_produce
      wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce_done', cr)
    File "/opt/openobject-server/openerp/workflow/wkf_service.py", line 124, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/opt/openobject-server/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/opt/openobject-server/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/opt/openobject-server/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/opt/openobject-server/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/opt/openobject-server/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/opt/openobject-server/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/opt/openobject-server/openerp/workflow/workitem.py", line 107, in _execute
      returned_action = wkf_expr.execute(cr, ident, workitem, activity)
    File "/opt/openobject-server/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/opt/openobject-server/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/opt/openobject-server/openerp/tools/safe_eval.py", line 242, in safe_eval
      return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/opt/openobject-server/openerp/osv/orm.py", line 368, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/opt/openobject-addons/mrp/mrp.py", line 675, in action_production_end
      self._costs_generate(cr, uid, production)
    File "/opt/openobject-addons/mrp/mrp.py", line 822, in _costs_generate
      'product_uom_id': wc.product_id.uom_id.id
  AttributeError: 'NoneType' object has no attribute 'id'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1028264/+subscriptions


References