c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05052
[Bug 615791] Re: Opening links from the product form makes the product form fail (5.0)
I guess this occurs only due to the location_ids are not well-listen in a list.
Anup, can you please check and close this one?
Thanks.
** Changed in: openobject-client
Importance: Undecided => Low
** Changed in: openobject-client
Milestone: 5.0.13 => None
--
Opening links from the product form makes the product form fail (5.0)
https://bugs.launchpad.net/bugs/615791
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject GTK Client: In Progress
Bug description:
Hi!
5.0 latest bzr.
Open the products list, switch to form. Create a stockable product and save it. Click on the all stock moves link. Close the tab. Now you're back on the product form. Click on Next. It should fail now. I tried it with some products already existing with some stock moves.
Traceback (most recent call last):
File "bin/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "bin/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "bin/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "bin/osv/orm.py", line 2228, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "bin/osv/orm.py", line 2354, in _read_flat
res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
File "bin/osv/fields.py", line 659, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "bin/addons/stock/product.py", line 166, in _product_available
stock=self.get_product_available(cr,uid,ids,context=c)
File "bin/addons/stock/product.py", line 72, in get_product_available
child_location_ids = self.pool.get('stock.location').search(cr, uid, [('location_id', 'child_of', location_ids)])
File "bin/osv/orm.py", line 3029, in search
(qu1, qu2, tables) = self._where_calc(cr, user, args, context=context)
File "bin/osv/orm.py", line 3009, in _where_calc
e.parse(cr, user, self, context)
File "bin/osv/expression.py", line 272, in parse
ids2 = list(right)
TypeError: 'long' object is not iterable