[FIX] Fixed options not reach at write method of DataSet.
bzr revid: cpa@tinyerp.com-20120622113153-xdwtfb3lzya65u4v
This commit is contained in:
@@ -831,7 +831,7 @@ openerp.web.ProxyDataSet = openerp.web.DataSetSearch.extend({
|
||||
},
|
||||
on_create: function(data) {},
|
||||
write: function (id, data, options, callback) {
|
||||
this.on_write(id, data);
|
||||
this.on_write(id, data, options);
|
||||
if (this.write_function) {
|
||||
return this.write_function(id, data, options, callback);
|
||||
} else {
|
||||
|
||||
@@ -3039,14 +3039,14 @@ openerp.web.form.FormOpenPopup = openerp.web.OldWidget.extend(/** @lends openerp
|
||||
this.dataset.child_name = this.options.child_name;
|
||||
this.setup_form_view();
|
||||
},
|
||||
on_write: function(id, data) {
|
||||
on_write: function(id, data, options) {
|
||||
if (!this.options.auto_write)
|
||||
return;
|
||||
var self = this;
|
||||
var wdataset = new openerp.web.DataSetSearch(this, this.model, this.context, this.domain);
|
||||
wdataset.parent_view = this.options.parent_view;
|
||||
wdataset.child_name = this.options.child_name;
|
||||
wdataset.write(id, data, {}, function(r) {
|
||||
wdataset.write(id, data, options, function(r) {
|
||||
self.on_write_completed();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user