openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23474
[Bug 1124459] Re: IndexError: pop from empty list Opne ERP 7
*** This bug is a duplicate of bug 921561 ***
https://bugs.launchpad.net/bugs/921561
** This bug has been marked a duplicate of bug 921561
Product function fields should return 0 when no locations are defined
--
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/1124459
Title:
IndexError: pop from empty list Opne ERP 7
Status in OpenERP Addons (modules):
New
Bug description:
When wharehouse product is empty deploys:
OpenERP Server Error
Client Traceback (most recent call last):
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/controllers/main.py", line 1005, in search_read
return self.do_search_read(req, model, fields, offset, limit, domain, sort)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/controllers/main.py", line 1040, in do_search_read
records = Model.read(ids, fields or False, req.context)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/session.py", line 43, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/netsvc.py", line 295, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/orm.py", line 3604, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/orm.py", line 3712, in _read_flat
res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/fields.py", line 1131, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/stock/product.py", line 356, in _product_available
stock = self.get_product_available(cr, uid, ids, context=c)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/addons/stock/product.py", line 243, in get_product_available
child_location_ids = location_obj.search(cr, uid, [('location_id', 'child_of', location_ids)])
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/orm.py", line 2354, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/orm.py", line 4843, in _search
query = self._where_calc(cr, user, args, context=context)
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/orm.py", line 4676, in _where_calc
where_clause, where_params = e.to_sql()
File "/home/antoniofregoso/workspace/openerp-server/src/openerp/osv/expression.py", line 1213, in to_sql
q2 = stack.pop()
IndexError: pop from empty list
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1124459/+subscriptions
References