Valentin Lab has proposed merging
lp:~vaab/openerp-web/mobile-client-apply-domain-filters into
lp:~openerp-dev/openerp-web/mobile-client.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~vaab/openerp-web/mobile-client-apply-domain-filters/+merge/76222
Filters given in the "action" object seems to have been forgotten. As a
consequence list view as Sales/Leads or Sales/Opportunities are the same as
they are in the same object database "crm.lead" that must be filtered.
If this has been left over for a good reason, I would be happy to learn why.
--
https://code.launchpad.net/~vaab/openerp-web/mobile-client-apply-domain-filters/+merge/76222
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~vaab/openerp-web/mobile-client-apply-domain-filters into
lp:~openerp-dev/openerp-web/mobile-client.
=== modified file 'addons/web_mobile/static/src/js/list_mobile.js'
--- addons/web_mobile/static/src/js/list_mobile.js 2011-09-20 13:19:17 +0000
+++ addons/web_mobile/static/src/js/list_mobile.js 2011-09-20 14:15:32 +0000
@@ -23,7 +23,7 @@
on_search_data: function(ev){
var self = this;
var dataset = new openerp.web.DataSetStatic(this, this.action.res_model, this.action.context);
- dataset.name_search('', [], 'ilike',false ,function(result){
+ dataset.name_search('', this.action.domain, 'ilike', false, function(result){
self.$element.html(QWeb.render("ListView", {'records' : result}));
self.$element.find("[data-role=header]").find('h1').html(self.action.name);
self.$element.find("[data-role=header]").find('#home').click(function(){
_______________________________________________
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