Vidhin Mehta  (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/6.1-opw-574193-vMe into lp:openerp-web/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574193-vMe/+merge/103699

Set domain and context of dataset to dashboard's.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574193-vMe/+merge/103699
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/6.1-opw-574193-vMe.
=== modified file 'addons/web/static/src/js/search.js'
--- addons/web/static/src/js/search.js	2012-03-26 12:30:03 +0000
+++ addons/web/static/src/js/search.js	2012-04-26 14:03:11 +0000
@@ -305,8 +305,8 @@
                     var menu_id = $(this).find("select").val(),
                         title = $(this).find("input").val(),
                         data = self.build_search_data(),
-                        context = new openerp.web.CompoundContext(),
-                        domain = new openerp.web.CompoundDomain();
+                        context = new openerp.web.CompoundContext(self.dataset.get_context()),
+                        domain = new openerp.web.CompoundDomain(self.dataset.get_domain());
                     _.each(data.contexts, function(x) {
                         context.add(x);
                     });

_______________________________________________
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

Reply via email to