read of stock.partial.picking.line via XML RPC causes crash

Bug #960982 reported by Colin Newell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 2

Bug Description

I'm using OpenERP 6.1.1.

Here is the debug trace from my server,

2012-03-21 08:41:04,160 16563 INFO ? werkzeug: 10.10.4.118 - - [21/Mar/2012 08:41:04] "POST /xmlrpc/object HTTP/1.0" 200 -
2012-03-21 08:41:04,163 16563 DEBUG ? openerp.netsvc.rpc.request: object.execute('test_run6',
2012-03-21 08:41:04,163 16563 DEBUG ? openerp.netsvc.rpc.request: 1,
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: '*',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'stock.partial.picking.line',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'read',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: [1, 2],
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: ['cost',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'update_cost',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'wizard_id',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'move_id',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'quantity',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'location_id',
2012-03-21 08:41:04,164 16563 DEBUG ? openerp.netsvc.rpc.request: 'currency',
2012-03-21 08:41:04,165 16563 DEBUG ? openerp.netsvc.rpc.request: 'product_uom',
2012-03-21 08:41:04,165 16563 DEBUG ? openerp.netsvc.rpc.request: 'product_id',
2012-03-21 08:41:04,165 16563 DEBUG ? openerp.netsvc.rpc.request: 'location_dest_id',
2012-03-21 08:41:04,165 16563 DEBUG ? openerp.netsvc.rpc.request: 'prodlot_id',
2012-03-21 08:41:04,165 16563 DEBUG ? openerp.netsvc.rpc.request: 'tracking'])
2012-03-21 08:41:04,166 16563 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 3381, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 3504, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/usr/lib/pymodules/python2.6/openerp/osv/fields.py", line 488, in get
    context=context))
  File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 2258, in name_get
    [self._rec_name], context, load='_classic_write')]
KeyError: 'name'
2012-03-21 08:41:04,166 16563 ERROR ? openerp.netsvc: name

It appears to be caused by the wizard_id field which is pointing to the stock.partial.picking model which does not have a name parameter. It tries to get the name from that object for the response and crashes.

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
importance: Low → Medium
Amit Parik (amit-parik)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Colin,

Thanks for the reporting!

This issue has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-960982-amp with following revision no and id.
rev no: 6682
rev id: 6682 <email address hidden>

Thank you!

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

fixed in trunk r7608

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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