openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16124
[Bug 960982] Re: read of stock.partial.picking.line via XML RPC causes crash
fixed in trunk r7608
** Changed in: openobject-addons
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/960982
Title:
read of stock.partial.picking.line via XML RPC causes crash
Status in OpenERP Addons (modules):
Fix Released
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/960982/+subscriptions
References