** Project changed: openobject-addons => openobject-server

** Summary changed:

- TypeError: __init__() takes exactly 3 arguments (2 given)
+ osv and orm exception generated the traceback instead of pop-up

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

Title:
  osv and orm exception generated the traceback instead of pop-up

Status in OpenERP Server:
  Confirmed

Bug description:
  Hello,

  I have tested this in following revision of trunk:

  Build - 5238
  server - 4815
  addons - 8592
  web - 3692

  Steps:

  Go to customer Payments, and create a record. Then try to do customer
  invoice payment. You will get following Traceback:

  Traceback (most recent call last):
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/web/http.py",
 line 194, in dispatch
      response["result"] = method(self, **self.params)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/web/controllers/main.py",
 line 1093, in exec_workflow
      return req.session.exec_workflow(model, id, signal)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/web/session.py",
 line 131, in exec_workflow
      r = self.proxy('object').exec_workflow(self._db, self._uid, 
self._password, model, signal, id)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/web/session.py",
 line 30, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/web/session.py",
 line 88, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/netsvc.py", 
line 236, in dispatch_rpc
      result = dispatch(method, params)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/service/model.py",
 line 27, in dispatch
      res = fn(db, uid, *params)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/service/model.py",
 line 100, in wrapper
      return f(dbname, *args, **kwargs)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/service/model.py",
 line 171, in exec_workflow
      res = exec_workflow_cr(cr, uid, obj, signal, *args)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/audittrail/audittrail.py",
 line 524, in exec_workflow_cr
      return fct_src(cr, uid, model, method, *args, **kw)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/service/model.py",
 line 164, in exec_workflow_cr
      return object.signal_workflow(cr, uid, [res_id], signal)[res_id]
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/osv/orm.py", 
line 3938, in signal_workflow
      result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, 
cr)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/__init__.py",
 line 106, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/instance.py",
 line 43, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/workitem.py",
 line 60, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, 
stack)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/workitem.py",
 line 175, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/workitem.py",
 line 183, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/workitem.py",
 line 40, in create
      process(cr, res, ident, stack=stack)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/workitem.py",
 line 52, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/workitem.py",
 line 106, in _execute
      returned_action = wkf_expr.execute(cr, ident, workitem, activity)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/wkf_expr.py",
 line 67, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/workflow/wkf_expr.py",
 line 57, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/tools/safe_eval.py",
 line 244, in safe_eval
      return eval(c, globals_dict, locals_dict)
    File "", line 1, in <module>
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/osv/orm.py", 
line 371, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/account_voucher/account_voucher.py",
 line 838, in proforma_voucher
      self.action_move_line_create(cr, uid, ids, context=context)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/account_voucher/account_voucher.py",
 line 1297, in action_move_line_create
      move_line_id = move_line_pool.create(cr, uid, 
self.first_move_line_get(cr,uid,voucher.id, move_id, company_currency, 
current_currency, context), context)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/addons/account/account_move_line.py",
 line 1229, in create
      result = super(account_move_line, self).create(cr, uid, vals, 
context=context)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/osv/orm.py", 
line 4492, in create
      self._validate(cr, user, [id_new], context)
    File 
"/home/odoo/runbot/static/openerp-dev-trunk-5238/server/openerp/osv/orm.py", 
line 1541, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  TypeError: __init__() takes exactly 3 arguments (2 given)

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to