[FIX] Fixed options not reach at write method of DataSet.

bzr revid: cpa@tinyerp.com-20120622113153-xdwtfb3lzya65u4v
This commit is contained in:
cpa-openerp
2012-06-22 17:01:53 +05:30
parent 1851e1735e
commit 45fe4e10b2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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();
});
},