[FIX]Fixe the issue o2m record duplication.

This commit is contained in:
Mohammed Shekha 2014-05-27 10:10:06 +05:30
parent 8b546d20ad
commit 477fa85e55
1 changed files with 1 additions and 0 deletions

View 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(){