[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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user