Bind the set_value callback in One2Many._set_value

this.name is used in the callback.

issue7206
review41171002
This commit is contained in:
Cédric Krier committed 2018-03-15 00:24:43 +01:00
1 parent 3196c82be6
commit ecf701cb82
1 file changed
+1 -1
+1 -1
View File
@@ -1934,7 +1934,7 @@
}
return jQuery.when.apply(jQuery, promises);
};
return prm.then(set_value);
return prm.then(set_value.bind(this));
},
set: function(record, value, _default) {
if (_default === undefined) {