[FIX] Fixed bug in 'SelectCreatePopup', it didn't returned the corrrect stuff (r.result->r).
bzr revid: vta@openerp.com-20121004070055-dq6kvaqlph6q1ei6
This commit is contained in:
parent
3856dcd5f1
commit
c51c904e7d
|
@ -2081,7 +2081,7 @@ instance.web.form.AbstractField = instance.web.form.FormWidget.extend(instance.w
|
|||
var self = this;
|
||||
var trans = new instance.web.DataSet(this, 'ir.translation');
|
||||
return trans.call_button('translate_fields', [this.view.dataset.model, this.view.datarecord.id, this.name, this.view.dataset.get_context()]).then(function(r) {
|
||||
self.do_action(r.result);
|
||||
self.do_action(r);
|
||||
});
|
||||
},
|
||||
});
|
||||
|
@ -4282,7 +4282,7 @@ instance.web.form.AbstractFormPopup = instance.web.Widget.extend({
|
|||
this.dataset.create_function = function(data, sup) {
|
||||
var fct = self.options.create_function || sup;
|
||||
return fct.call(this, data).then(function(r) {
|
||||
self.created_elements.push(r.result);
|
||||
self.created_elements.push(r);
|
||||
});
|
||||
};
|
||||
this.dataset.write_function = function(id, data, options, sup) {
|
||||
|
|
|
@ -1190,7 +1190,7 @@ instance.web.View = instance.web.Widget.extend({
|
|||
var context = new instance.web.CompoundContext(dataset.get_context(), action_data.context || {});
|
||||
|
||||
var handler = function (r) {
|
||||
var action = r.result;
|
||||
var action = r;
|
||||
if (action && action.constructor == Object) {
|
||||
var ncontext = new instance.web.CompoundContext(context);
|
||||
if (record_id) {
|
||||
|
|
Loading…
Reference in New Issue