Screen.save_current must return the promise from display

When changing with next/previous from a modified record and save it, it can
lead to the Screen.display is applied after the change of record but with the
other record values.
This commit is contained in:
Cédric Krier committed 2015-09-13 10:15:56 +02:00
1 parent 26c1a797d1
commit 144ed9a86c
1 file changed
+1 -1
+1 -1
View File
@@ -948,7 +948,7 @@
}.bind(this));
}
var display = function() {
this.display();
return this.display();
}.bind(this);
return prm.then(display, display);
},