Trunk/6.1 stock - Error in new company

Bug #1081193 reported by Ferdinand
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 2

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

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Faced the error when create new company and try to create new product with this company on 6.1 as well as trunk!

Thank you!

summary: - 6.1 stock - Error in new company
+ Trunk/6.1 stock - Error in new company
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
status: Confirmed → Incomplete
status: Incomplete → Opinion
status: Opinion → In Progress
Revision history for this message
Hiral Patel (OpenERP) (hip-openerp) wrote :

Hello,

           It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1081193-hip
           Revno: 8202
           Revision ID: <email address hidden>

Thanks,
hip

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → In Progress
Revision history for this message
Hiral Patel (OpenERP) (hip-openerp) wrote :

Hello,

           It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1081193-hip
           Revno: 8206
           Revision ID: <email address hidden>

Thanks,
hip

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Hiral Patel (OpenERP) (hip-openerp) wrote :

Hello,

I have attached the video to reproduce this bug.

Thanks,
hip

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.