openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #19022
[Bug 1081193] Re: Trunk/6.1 stock - Error in new company
** Changed in: openobject-addons
Status: Confirmed => Incomplete
** Changed in: openobject-addons
Status: Incomplete => Opinion
** Changed in: openobject-addons
Status: Opinion => In Progress
--
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/1081193
Title:
Trunk/6.1 stock - Error in new company
Status in OpenERP Addons (modules):
In Progress
Bug description:
after creating a new company - and NOT creating a warehouse and an
internal stock location the following error occurs
2012-11-20 15:47:04,718 20303 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/orm.py", line 3381, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/orm.py", line 3492, in _read_flat
res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/fields.py", line 1124, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/addons/stock/product.py", line 331, in _product_available
stock = self.get_product_available(cr, uid, ids, context=c)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/addons/stock/product.py", line 222, in get_product_available
child_location_ids = location_obj.search(cr, uid, [('location_id', 'child_of', location_ids)])
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/orm.py", line 2241, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/orm.py", line 4548, in _search
query = self._where_calc(cr, user, args, context=context)
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/orm.py", line 4399, in _where_calc
where_clause, where_params = e.to_sql()
File "/srv/openerp/instances/openerp_prod_db/src/server/openerp/osv/expression.py", line 795, in to_sql
q2 = stack.pop()
IndexError: pop from empty list
2012-11-20 15:47:04,719 20303 ERROR ? openerp.netsvc: pop from empty list
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1081193/+subscriptions
References