Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-54660-msh into
lp:openobject-client-web.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-54660-msh/+merge/86690
Hello,
Fixed the issue of save filter which was not working in GTK client if it is
created from web-client.
Produce :- Open any tree view and serach the data by some field say for e.g.
Product list view and search the data by inserting something in Name field.
Now go to filter selection box and select save filter, give some name and save
this filter.
Now go to GTK-client and open product list view and apply that saved filter,
you will face the error.
Reason :- When web client save the filter at that time it will call
do_filter_sc of search.py which is accept json request so there will be '[]'
instead of [] in data which is causing error.
So changed the code accordingly.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-54660-msh/+merge/86690
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-54660-msh.
=== modified file 'addons/openerp/controllers/search.py'
--- addons/openerp/controllers/search.py 2011-11-23 14:47:56 +0000
+++ addons/openerp/controllers/search.py 2011-12-22 12:10:07 +0000
@@ -443,7 +443,9 @@
name = kw.get('name')
model = kw.get('model')
domain = kw.get('domain')
- group_by = kw.get('group_by', '[]')
+ group_by = kw.get('group_by', [])
+ if isinstance(group_by, str):
+ group_by = expr_eval(group_by)
if group_by:
context = {'group_by': group_by}
else:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp