c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07025
[Bug 615791] Re: Wrong use of context on act_windows of Products(for moves)
For trunk, the fix has currently landed in revision 3885 revision-id:
odo@xxxxxxxxxxx-20101207181243-cpx219dgxtqh7lxa of the trunk-dev-addons2
branch, and will be merged in trunk soon.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/615791
Title:
Wrong use of context on act_windows of Products(for moves)
Status in OpenObject Addons Modules:
Confirmed
Status in OpenObject Addons 5.0 series:
Fix Released
Status in OpenObject Addons trunk series:
Confirmed
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