[FIX] list: force recompute the selection as closing group reset properties (opw...
authorMartin Trigaux <mat@openerp.com>
Mon, 28 Oct 2013 14:16:47 +0000 (15:16 +0100)
committerMartin Trigaux <mat@openerp.com>
Mon, 28 Oct 2013 14:16:47 +0000 (15:16 +0100)
bzr revid: mat@openerp.com-20131028141647-j6wkvl6plwblh077

addons/web/static/src/js/view_list.js

index e290981..02d0b21 100644 (file)
@@ -1332,6 +1332,9 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
                                 .removeClass('ui-icon-triangle-1-s')
                                 .addClass('ui-icon-triangle-1-e');
                         child.close();
+                        // force recompute the selection as closing group reset properties
+                        var selection = self.get_selection();
+                        $(self).trigger('selected', [selection.ids, this.records]);
                     }
                 });
             }