~therp-nl/openerp-web/7.0-lp1013636-x2m_honour_required_attribute

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/search.js

[MERGE] from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        this.hidden = !!hidden;
98
98
        this.headless = this.hidden && !this.has_defaults;
99
99
 
 
100
        this.filter_data = {};
 
101
 
100
102
        this.ready = $.Deferred();
101
103
    },
102
104
    start: function() {
507
509
                        group_by instanceof Array ? group_by : group_by.split(','),
508
510
                        function (el) { return { group_by: el }; });
509
511
                }
510
 
                this.on_search([filter.domain], [filter.context], groupbys);
 
512
                this.filter_data = {
 
513
                    domains: [filter.domain],
 
514
                    contexts: [filter.context],
 
515
                    groupbys: groupbys
 
516
                };
 
517
                this.do_search();
511
518
            }, this));
512
519
        } else {
513
520
            select.val('');
1141
1148
            ['false', _t("No")]
1142
1149
        ];
1143
1150
    },
1144
 
    get_value: function () {
1145
 
        switch (this.$element.val()) {
 
1151
    get_value: function (facet) {
 
1152
        switch (this._super(facet)) {
1146
1153
            case 'false': return false;
1147
1154
            case 'true': return true;
1148
1155
            default: return null;