[FIX]Fixed the issue of duplicated one2many lines, weired behavior when you add one2many line and then add another line withour filling required field and then click on save, then remove added one2many line for which we didn't filled required data and then save it, you will get duplicated lines.

bzr revid: msh@tinyerp.com-20140403070844-6ogpdursukue2zoh
This commit is contained in:
Mohammed Shekha 2014-04-03 12:38:44 +05:30
parent 8752221ac2
commit f9d143c216
1 changed files with 3 additions and 0 deletions

View File

@ -620,6 +620,9 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
});
}
return $.when();
}).fail(function() {
self.save_list.pop();
return $.when();
});
};
return iterate();