[FIX] don't blow up when there are no records in the theeview

bzr revid: xmo@openerp.com-20110809154817-w9hvt2whhzh5djoz
This commit is contained in:
Xavier Morel
2011-08-09 17:48:17 +02:00
parent 03ebf10f4c
commit ac896c3ac6
+3 -1
View File
@@ -94,7 +94,9 @@ openerp.base.TreeView = openerp.base.View.extend({
.appendTo($select);
});
$select.change();
if (!_.isEmpty(records)) {
$select.change();
}
});
},
/**