← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 817427] [NEW] cannot process a reception

 

Public bug reported:

in new web client 
- create a purchase order and confrm it 
- go to purchase / reception 
- process the record : bug 


Client Traceback (most recent call last):
  File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 307, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/aline/openerp/web/openerp-web/addons/base/controllers/main.py", line 904, in run
    [action_id], req.session.eval_context(req.context)), req.session)
  File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 58, in <lambda>
    return lambda *l:self._session.execute(self._model, name, *l)
  File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 113, in execute
    r = self.proxy('object').execute(self._db, self._uid, self._password, model, func, *l, **d)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])


Server Traceback (most recent call last):
  File "/home/aline/openerp/server/trunk/openerp/netsvc.py", line 440, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/aline/openerp/server/trunk/openerp/service/web_services.py", line 588, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/openerp/server/trunk/openerp/addons/base/ir/ir_actions.py", line 633, in run
    eval(action.code, localdict, mode="exec", nocopy=True) # nocopy allows to return 'action'
  File "/home/aline/openerp/server/trunk/openerp/tools/safe_eval.py", line 286, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 334, in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/aline/openerp/addons/trunk/stock/stock.py", line 1473, in action_partial_move
    cr, uid, {}, context=context)
  File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 2368, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 2244, in _add_missing_default_values
    defaults = self.default_get(cr, uid, missing_defaults, context)
  File "/home/aline/openerp/addons/trunk/purchase/stock.py", line 172, in default_get
    res = super(stock_partial_move, self).default_get(cr, uid, fields, context=context)
  File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 1294, in default_get
    self.view_init(cr, uid, fields_list, context)
  File "/home/aline/openerp/addons/trunk/stock/wizard/stock_partial_move.py", line 84, in view_init
    if move.state in ('done', 'cancel'):
  File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 447, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field state not found in browse_record(stock.move, 66)'

** Affects: openerp-web
     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/817427

Title:
  cannot process a reception

Status in OpenERP Web:
  New

Bug description:
  in new web client 
  - create a purchase order and confrm it 
  - go to purchase / reception 
  - process the record : bug 


  Client Traceback (most recent call last):
    File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 307, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/aline/openerp/web/openerp-web/addons/base/controllers/main.py", line 904, in run
      [action_id], req.session.eval_context(req.context)), req.session)
    File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 58, in <lambda>
      return lambda *l:self._session.execute(self._model, name, *l)
    File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 113, in execute
      r = self.proxy('object').execute(self._db, self._uid, self._password, model, func, *l, **d)
    File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
      return self.__send(self.__name, args)
    File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
      verbose=self.__verbose
    File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
      return self._parse_response(h.getfile(), sock)
    File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
      return u.close()
    File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
      raise Fault(**self._stack[0])

  
  Server Traceback (most recent call last):
    File "/home/aline/openerp/server/trunk/openerp/netsvc.py", line 440, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/aline/openerp/server/trunk/openerp/service/web_services.py", line 588, in dispatch
      res = fn(db, uid, *params)
    File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/aline/openerp/server/trunk/openerp/addons/base/ir/ir_actions.py", line 633, in run
      eval(action.code, localdict, mode="exec", nocopy=True) # nocopy allows to return 'action'
    File "/home/aline/openerp/server/trunk/openerp/tools/safe_eval.py", line 286, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 334, in <lambda>
      return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
    File "/home/aline/openerp/addons/trunk/stock/stock.py", line 1473, in action_partial_move
      cr, uid, {}, context=context)
    File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 2368, in create
      vals = self._add_missing_default_values(cr, user, vals, context)
    File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 2244, in _add_missing_default_values
      defaults = self.default_get(cr, uid, missing_defaults, context)
    File "/home/aline/openerp/addons/trunk/purchase/stock.py", line 172, in default_get
      res = super(stock_partial_move, self).default_get(cr, uid, fields, context=context)
    File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 1294, in default_get
      self.view_init(cr, uid, fields_list, context)
    File "/home/aline/openerp/addons/trunk/stock/wizard/stock_partial_move.py", line 84, in view_init
      if move.state in ('done', 'cancel'):
    File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 447, in __getattr__
      raise AttributeError(e)
  AttributeError: 'Field state not found in browse_record(stock.move, 66)'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/817427/+subscriptions


Follow ups

References