[fix] problem in o2m
bzr revid: nicolas.vanhoren@openerp.com-20120111143712-fln5ddnfobp84ieb
This commit is contained in:
parent
ae95d87a22
commit
a03bd12a44
|
@ -2425,7 +2425,10 @@ openerp.web.form.One2ManyFormView = openerp.web.FormView.extend({
|
||||||
form_template: 'One2Many.formview',
|
form_template: 'One2Many.formview',
|
||||||
on_loaded: function(data) {
|
on_loaded: function(data) {
|
||||||
this._super(data);
|
this._super(data);
|
||||||
this.$form_header.find('button.oe_form_button_create').click(this.on_button_new);
|
var self = this;
|
||||||
|
this.$form_header.find('button.oe_form_button_create').click(function() {
|
||||||
|
self.do_save().then(self.on_button_new);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue