Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-383509-msh into
lp:openobject-client-web.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #927779 in OpenERP Web Client: "The unreconciled entries filter does not
work in Web Client"
https://bugs.launchpad.net/openobject-client-web/+bug/927779
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-383509-msh/+merge/92270
Hello,
Fixed the issue of search view which is not coming anyway when new tab is
opened from act_window,
instead of it only select=1 will be shown in the search view.
Demo :- Accounting / Configuration / Accounts / Accounts now unreconciled
entries from sidebar.
when you click this you will get new tab but the search view in this view is
not the search view of account.move.line.
Reason:- Here when action is called from sidebar, so the form_context will be
passed to action.py and in action.py form_context and context of data is
evaluated, and in context of data there will be a search_view which is the
search view account.account and when fields_view_get is called for search view
at that time res_model will be passed as account.move.line and id will be
search_view_id of account.account so there will not be any search view whose id
and model matched so there will be no search view, hence select=1 fields for
search view will be shown only.
Changed the code and removed the current form search_view_id .
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-383509-msh/+merge/92270
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-383509-msh.
=== modified file 'addons/openerp/controllers/form.py'
--- addons/openerp/controllers/form.py 2011-11-23 08:38:45 +0000
+++ addons/openerp/controllers/form.py 2012-02-09 13:32:36 +0000
@@ -1008,6 +1008,8 @@
domain.extend(expr_eval(action.get('domain', '[]'), context))
action['domain'] = ustr(domain)
+ if context.get('search_view'):
+ context.pop('search_view')
action['form_context'] = context or {}
import actions
return actions.execute(action, model=params.model, id=id, ids=ids, report_type='pdf', context_menu=context_menu)
_______________________________________________
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