Add missing bind on XXX2Many edit and add
Changeset 5b447f80162c added async callbacks when opening and editing XXX2Many fields, but they were not bound to the correct object so the object properties are not read correcty. issue5780 review31411002
This commit is contained in:
+5
-5
@@ -2441,7 +2441,7 @@
|
||||
title: this.attributes.string
|
||||
|
||||
});
|
||||
};
|
||||
}.bind(this);
|
||||
|
||||
var make_product = function() {
|
||||
if (jQuery.isEmptyObject(product)) {
|
||||
@@ -2474,8 +2474,8 @@
|
||||
};
|
||||
|
||||
search_set();
|
||||
});
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
},
|
||||
open: function(event_) {
|
||||
this.edit();
|
||||
@@ -2760,7 +2760,7 @@
|
||||
screen.switch_view().done(function() {
|
||||
new Sao.Window.Form(screen, callback,
|
||||
{title: this.attributes.string});
|
||||
});
|
||||
}.bind(this));
|
||||
},
|
||||
new_: function() {
|
||||
var screen = this._get_screen_form();
|
||||
@@ -2778,7 +2778,7 @@
|
||||
title: this.attributes.string,
|
||||
rec_name: this.entry.val()
|
||||
});
|
||||
});
|
||||
}.bind(this));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user