[IMP] view_form: statusbar: see the folded stage where i am

bzr revid: chm@openerp.com-20130328104116-gn6ve3g2p4d496ss
This commit is contained in:
Christophe Matthieu
2013-03-28 11:41:16 +01:00
parent 797dde8740
commit 11ffa1be3b
+1 -1
View File
@@ -5323,7 +5323,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
return new instance.web.DataSetSearch(self, self.field.relation, self.build_context(), this.get("evaluated_selection_domain"))
.read_slice(['name', 'fold'], {}).then(function (records) {
_.each(records, function (record) {
if (record.fold) {
if (record.fold && record.id != self.get('value')) {
selection_folded.push([record.id, record.name]);
} else {
selection_unfolded.push([record.id, record.name]);