← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 851866] Re: Workflow buttons in one2many fields cause crash

 

** Changed in: openerp-web
       Status: Confirmed => In Progress

** Changed in: openerp-web
   Importance: Low => Medium

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/851866

Title:
  Workflow buttons in one2many fields cause crash

Status in OpenERP Web:
  In Progress

Bug description:
  Hi guys!

  It seems that workflow buttons in one2many list fields fail, because
  the argument sent by the client is erroneous. Here is the error I get:

  [2011-09-16 14:42:53,517][?] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 192, in exec_workflow
      res = self.exec_workflow_cr(cr, uid, obj, method, *args)
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 185, in exec_workflow_cr
      return wf_service.trg_validate(uid, obj, args[0], method, cr)
    File "/home/fde/repository/openobject-server_trunk/openerp/workflow/wkf_service.py", line 78, in trg_validate
      cr.execute('select id from wkf_instance where res_id=%s and res_type=%s and state=%s', (res_id, res_type, 'active'))
    File "/home/fde/repository/openobject-server_trunk/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/home/fde/repository/openobject-server_trunk/openerp/sql_db.py", line 213, in execute
      res = self._obj.execute(query, params)
  DataError: ERREUR:  syntaxe en entrée invalide pour l'entier : « one2many_v_id_281 »
  LIGNE 1 : select id from wkf_instance where res_id=E'one2many_v_id_281...
                                                     ^

  > /home/fde/repository/openobject-server_trunk/openerp/sql_db.py(213)execute()
  -> res = self._obj.execute(query, params)
  (Pdb) query
  'select id from wkf_instance where res_id=%s and res_type=%s and state=%s'
  (Pdb) params
  ('one2many_v_id_281', 'module.object', 'active')


  revno 1045

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


References