[O2M] Performing an action in an o2m list row errors out when the row has not been saved

Bug #884207 reported by Aline (OpenERP)
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Web Team

Bug Description

trunk, web, chrome, mrp_operation

View : Manufacturing order (Manufacturing/Manufacturing/Manufacturing Orders), tab workorder.
create a new one, save it and start it from the list

here under, the bug i get if i start an order line from work order tab

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 731, in exec_workflow
    r = req.session.exec_workflow(model, id, signal)
  File "/home/aline/source/web/trunk/addons/web/common/session.py", line 82, in exec_workflow
    r = self.proxy('object').exec_workflow(self._db, self._uid, self._password, model, signal, id)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 294, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 264, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 245, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/aline/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 192, in exec_workflow
    res = self.exec_workflow_cr(cr, uid, obj, method, *args)
  File "/home/aline/source/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/aline/source/server/trunk/openerp/workflow/wkf_service.py", line 122, 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/aline/source/server/trunk/openerp/sql_db.py", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
DataError: invalid input syntax for integer: "one2many_v_id_22478"
LINE 1: select id from wkf_instance where res_id=E'one2many_v_id_224...
                                                 ^

Related branches

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

Hello Aline,

I am confirming this issue at revision no:

New web client : 1400

Thanks for reporting.

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openerp-web:
importance: Low → Medium
summary: - mrp_operation : cannot start an operation
+ Performing an action in an o2m list row errors out when the row has not
+ been saved
Changed in openerp-web:
status: Confirmed → In Progress
status: In Progress → Confirmed
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote : Re: Performing an action in an o2m list row errors out when the row has not been saved

I try to resolve this one.

Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Normaly, that button in the editable list should be disabled (the one in the form view is disabled).

Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

I must ask xmo where that button is implemented.

Changed in openerp-web:
status: In Progress → Fix Committed
Changed in openerp-web:
status: Fix Committed → Confirmed
summary: - Performing an action in an o2m list row errors out when the row has not
- been saved
+ [O2M] Performing an action in an o2m list row errors out when the row
+ has not been saved
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

Remote bug watches

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