[FIX] web: x2many: can't save document if a lines is removed with an ohter activate line. The widget try to blur a second time when the user click on save (need to check if allready blurred)

This commit is contained in:
Christophe Matthieu
2015-05-11 11:20:24 +02:00
parent 6e31be7b5e
commit 2726edc6b0
@@ -1062,7 +1062,7 @@ var One2ManyListView = ListView.extend({
},
_on_blur_one2many: function (force) {
var self = this;
var def;
var def = $.when();
if (this.__ignore_blur && !force) {
this.__ignore_blur = false;
@@ -1074,7 +1074,7 @@ var One2ManyListView = ListView.extend({
if (this.editor.form.is_dirty()) {
def = this.ensure_saved();
} else {
} else if (this.editor.record) {
def = this.cancel_edition();
}