[FIX]Fixe the issue o2m record duplication.
authorMohammed Shekha <msh@openerp.com>
Tue, 27 May 2014 04:40:06 +0000 (10:10 +0530)
committerMohammed Shekha <msh@openerp.com>
Tue, 27 May 2014 04:40:06 +0000 (10:10 +0530)
addons/web/static/src/js/view_form.js

index 7a38f0b..403a4b0 100644 (file)
@@ -3949,6 +3949,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
                 return $.when();
         }).done(function () {
             if (!self.o2m.options.reload_on_button) {
+                self.o2m.dataset.reset_ids([]);
                 self.handle_button(name, id, callback);
             }else {
                 self.handle_button(name, id, function(){