From f9d143c216f36ada7b160b76a298d5cfc1613b65 Mon Sep 17 00:00:00 2001 From: Mohammed Shekha Date: Thu, 3 Apr 2014 12:38:44 +0530 Subject: [PATCH] [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 --- addons/web/static/src/js/view_form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index edb44e7ea06..c5cc4989d4a 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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();