Bhumi Thakkar (Open ERP) has proposed merging 
lp:~openerp-dev/openerp-web/7.0-improve-advance_search-bth into 
lp:openerp-web/7.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/7.0-improve-advance_search-bth/+merge/144263

Hello,

  For filters deprecated fields do not listed in selection box of advance 
search.
For example:
Purchases => Suppliers: in Advance search in selection 2 fields named country 
one of them is deprecated so it should not be listed.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/7.0-improve-advance_search-bth/+merge/144263
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/7.0-improve-advance_search-bth.
=== modified file 'addons/web/static/src/js/search.js'
--- addons/web/static/src/js/search.js	2013-01-14 13:51:45 +0000
+++ addons/web/static/src/js/search.js	2013-01-22 10:31:21 +0000
@@ -1787,6 +1787,7 @@
     init: function (parent, fields) {
         this._super(parent);
         this.fields = _(fields).chain()
+            .filter(function (field) { return !field.deprecated; })
             .map(function(val, key) { return _.extend({}, val, {'name': key}); })
             .sortBy(function(field) {return field.string;})
             .value();

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to