Calling written should be done after the save to get the right id if it is a creation

This commit is contained in:
Cédric Krier committed 2015-10-09 12:42:37 +02:00
1 parent 7632d3504d
commit 61aeb845d2
1 file changed
+4 -2
+4 -2
View File
@@ -444,14 +444,16 @@
context);
}
}
prm.done(function() {
prm = prm.done(function() {
this.cancel();
if (force_reload) {
return this.reload();
}
}.bind(this));
if (this.group) {
this.group.written(this.id);
prm = prm.done(function() {
return this.group.written(this.id);
}.bind(this));
}
if (this.group.parent) {
delete this.group.parent._changed[this.group.child_name];