production_lot_custom_attributes: search all attributes fails if no attributes are defined in the system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Product Attributes |
Fix Released
|
Undecided
|
Leonardo Pistone |
Bug Description
to reproduce:
on lastest 6.1 ocb install production_
2014-01-31 16:27:44,195 25495 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
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/
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
Related branches
- Yannick Vaucher @ Camptocamp: Approve (code review, no tests)
- Alexandre Fayolle - camptocamp: Approve (code review, no test)
-
Diff: 25 lines (+10/-5)1 file modifiedproduction_lot_custom_attributes/lot.py (+10/-5)
Changed in openerp-product-attributes: | |
status: | New → Fix Released |
assignee: | nobody → Leonardo Pistone - camptocamp (lpistone) |