Workflow buttons in one2many fields cause crash

Bug #851866 reported by Francois Degrave
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Web Team

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

Related branches

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello,

 I am Confirming this issue.I have attached video for more
more reference.

Thanks.

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Jagdish Panchal (Open ERP) (jap-openerp) wrote :

Hello Francois Degrave,

It has been fixed in branch:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-851866-jap
at revision:1081

Thanks,
jap

Changed in openerp-web:
status: In Progress → Fix Committed
Changed in openerp-web:
status: Fix Committed → In Progress
Changed in openerp-web:
status: In Progress → Confirmed
Changed in openerp-web:
status: Confirmed → In Progress
importance: Low → Medium
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

I think I solved most of the problems regarding the o2m in view mode. Now it's true the buttons of the o2m in list mode does not work at all (we forgot those).

So I'll see with xmo what we will do about that.

Changed in openerp-web:
status: In Progress → Confirmed
Changed in openerp-web:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.