Wrong domain set for act_window records.

Bug #691438 reported by Jay Vora (Serpent Consulting Services)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Fix Released
Medium
Jay Vora (Serpent Consulting Services)
Trunk
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Administration/Low Level Objects/Actions/Window Actions

Search on action name 'sales' or 'all analytic entries'.

These entries have domain as '{}'.

Error could be faced while creating custom dashboard from Administration/Customization/Reporting/Dashboard Definition.

Assign an action which has '{}' domain.

Create a menu for dashboard.

It fails with this traceback:

Traceback (most recent call last):
  File "/home/jvo/workspace/trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/jvo/workspace/trunk/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/jvo/workspace/trunk/server/bin/osv/orm.py", line 1870, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/jvo/workspace/trunk/server/bin/osv/orm.py", line 4085, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/home/jvo/workspace/trunk/server/bin/osv/orm.py", line 3931, in _where_calc
    domain = domain[:]
TypeError: unhashable type

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Herewith is a patch attached.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed on stable by revision 2162 <email address hidden>.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Applied in trunk at rev 3134 <email address hidden> (I think bzr-rebase screwed up my previous merge, so this commit includes another merge as well, sorry about that)
Thanks!

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.