[FIX] events handling ordering courtesy of Michel Meyer
lead to errors during the validation of rows in list o2ms. See https://bugs.launchpad.net/openerp-web/+bug/1182101/comments/20 for an extensive description of the events and issue. bzr revid: xmo@openerp.com-20131209153519-n05bdx15t75dh7gf
This commit is contained in:
parent
3be327c0ae
commit
68aac8e855
|
@ -3822,7 +3822,6 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
|
|||
GroupsType: instance.web.form.One2ManyGroups,
|
||||
ListType: instance.web.form.One2ManyList
|
||||
}));
|
||||
this.on('edit:before', this, this.proxy('_before_edit'));
|
||||
this.on('edit:after', this, this.proxy('_after_edit'));
|
||||
this.on('save:before cancel:before', this, this.proxy('_before_unedit'));
|
||||
|
||||
|
@ -3943,11 +3942,10 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
|
|||
});
|
||||
},
|
||||
|
||||
_before_edit: function () {
|
||||
_after_edit: function () {
|
||||
this.__ignore_blur = false;
|
||||
this.editor.form.on('blurred', this, this._on_form_blur);
|
||||
},
|
||||
_after_edit: function () {
|
||||
|
||||
// The form's blur thing may be jiggered during the edition setup,
|
||||
// potentially leading to the o2m instasaving the row. Cancel any
|
||||
// blurring triggered the edition startup here
|
||||
|
|
Loading…
Reference in New Issue