Product function fields should return 0 when no locations are defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
6.1 (last update 01/25/12)
Create a mutli-company environment :
- Create a new database
- In settings, rename the company name "your company" to "company A"
- Create a second company "company B"
- Rename user "Administrator" to "Super Administrator"
- Change "Super Administrator access rights" : add "multi-company" + "extended view"
- Log out then log in
- Link "Super Administrator" to companies A and B but default filter is "company A"
- Duplicate "Super Administrator" + rename the copy "Administrator A" + link "Administrator A" to "company A" + default filter is "company A"
- Duplicate "Super Administrator" + rename the copy "Administrator B" + link "Administrator A" to "company B" + default filter is "company B"
- Install the module "Sales" : select "Company A" while setting the chart of account
- All users : associate the right "manager" for Sales/Warehouse
- Log as "Administrator B" and define the financial settings (use default values)
- Log as "Administrator A" + open the product "Service on Timesheet" and do NOT associate to a company
- Log as "Administrator B"and open the product list :
-------
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
return self.do_
File "/home/
records = Model.read(
File "/home/
args, kw)
File "/home/
result = self.connector.
File "/home/
raise fault
Server Traceback (most recent call last):
File "/home/
result = openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/
stock = self.get_
File "/home/
child_
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
query = self._where_
File "/home/
where_clause, where_params = e.to_sql()
File "/home/
q2 = stack.pop()
IndexError: pop from empty list
-------
Thank's
Francois Pietquin
OpenERP Belgium
Professional Services
Related branches
- Ajay Patel (OpenERP) (community): Approve
- Christophe Matthieu (OpenERP) (community): Needs Information
-
Diff: 11 lines (+2/-0)1 file modifiedstock/product.py (+2/-0)
summary: |
- Multi-company : product (list) and location + [PS] Multi-company : product (list) and location |
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
affects: | openobject-addons → openobject-server |
summary: |
- [PS] Multi-company : product (list) and location + Product function fields should return 0 when no locations are defined |
Changed in openobject-addons: | |
importance: | Wishlist → Low |
Changed in openobject-addons: | |
importance: | Low → Medium |
Changed in openobject-addons: | |
assignee: | OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Hello ,
I have checked the Issue at my end, I face the same traceback at server side.
would you please refer this , lp : 922024
Thanks !