c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #36964
[Bug 888502] [NEW] Stack trace when consulting a product from a sale order line
Public bug reported:
To reproduce:
- open a sale order line
- save it to switch to read only mode
- open a sale order line
- click on the product to open it => stack trace
Client Traceback (most recent call last):
File "/home/niv/sharedrepo/proto/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/niv/sharedrepo/proto/addons/web/controllers/main.py", line 719, in get
return self.do_get(req, model, ids, fields)
File "/home/niv/sharedrepo/proto/addons/web/controllers/main.py", line 741, in do_get
records = Model.read(ids, fields, req.session.eval_context(req.context))
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 429, in proxy
*args)
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 306, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 276, in send
raise fault
Server Traceback (most recent call last):
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 257, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/niv/sharedrepo/server/openerp/netsvc.py", line 325, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/niv/sharedrepo/server/openerp/service/web_services.py", line 580, in dispatch
res = fn(db, uid, *params)
File "/home/niv/sharedrepo/server/openerp/osv/osv.py", line 120, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/niv/sharedrepo/server/openerp/osv/osv.py", line 172, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/niv/sharedrepo/server/openerp/osv/osv.py", line 163, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/niv/sharedrepo/server/openerp/osv/orm.py", line 3272, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/niv/sharedrepo/server/openerp/osv/orm.py", line 3383, in _read_flat
res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
File "/home/niv/sharedrepo/server/openerp/osv/fields.py", line 1034, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/niv/sharedrepo/addons/stock/product.py", line 324, in _product_available
stock = self.get_product_available(cr, uid, ids, context=c)
File "/home/niv/sharedrepo/addons/stock/product.py", line 288, in get_product_available
uoms = uom_obj.browse(cr, uid, list(set(uoms)), context=context)
TypeError: unhashable type: 'list'
** Affects: openerp-web
Importance: Medium
Status: Confirmed
--
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/888502
Title:
Stack trace when consulting a product from a sale order line
Status in OpenERP Web:
Confirmed
Bug description:
To reproduce:
- open a sale order line
- save it to switch to read only mode
- open a sale order line
- click on the product to open it => stack trace
Client Traceback (most recent call last):
File "/home/niv/sharedrepo/proto/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/niv/sharedrepo/proto/addons/web/controllers/main.py", line 719, in get
return self.do_get(req, model, ids, fields)
File "/home/niv/sharedrepo/proto/addons/web/controllers/main.py", line 741, in do_get
records = Model.read(ids, fields, req.session.eval_context(req.context))
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 429, in proxy
*args)
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 306, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 276, in send
raise fault
Server Traceback (most recent call last):
File "/home/niv/sharedrepo/proto/addons/web/common/openerplib/main.py", line 257, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/niv/sharedrepo/server/openerp/netsvc.py", line 325, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/niv/sharedrepo/server/openerp/service/web_services.py", line 580, in dispatch
res = fn(db, uid, *params)
File "/home/niv/sharedrepo/server/openerp/osv/osv.py", line 120, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/niv/sharedrepo/server/openerp/osv/osv.py", line 172, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/niv/sharedrepo/server/openerp/osv/osv.py", line 163, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/niv/sharedrepo/server/openerp/osv/orm.py", line 3272, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/niv/sharedrepo/server/openerp/osv/orm.py", line 3383, in _read_flat
res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
File "/home/niv/sharedrepo/server/openerp/osv/fields.py", line 1034, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/niv/sharedrepo/addons/stock/product.py", line 324, in _product_available
stock = self.get_product_available(cr, uid, ids, context=c)
File "/home/niv/sharedrepo/addons/stock/product.py", line 288, in get_product_available
uoms = uom_obj.browse(cr, uid, list(set(uoms)), context=context)
TypeError: unhashable type: 'list'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/888502/+subscriptions
Follow ups
References