[FIX] web: FieldMany2One: correctly return deferred

This function is overriden in studio and the overrides needs to
know when the RPC is done.
This commit is contained in:
Aaron Bohy
2017-04-11 19:44:38 +02:00
parent cbc63ca869
commit 68eeb849c4
@@ -197,7 +197,7 @@ var FieldMany2One = AbstractField.extend({
var self = this;
var slowCreate = this._searchCreatePopup.bind(this, "form", false, this._createContext(name));
if (this.nodeOptions.quick_create) {
this._rpc({
return this._rpc({
model: this.field.relation,
method: 'name_create',
args: [name],