[FIX]Fixe the issue o2m record duplication.
This commit is contained in:
parent
8b546d20ad
commit
477fa85e55
|
@ -3949,6 +3949,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
|
||||||
return $.when();
|
return $.when();
|
||||||
}).done(function () {
|
}).done(function () {
|
||||||
if (!self.o2m.options.reload_on_button) {
|
if (!self.o2m.options.reload_on_button) {
|
||||||
|
self.o2m.dataset.reset_ids([]);
|
||||||
self.handle_button(name, id, callback);
|
self.handle_button(name, id, callback);
|
||||||
}else {
|
}else {
|
||||||
self.handle_button(name, id, function(){
|
self.handle_button(name, id, function(){
|
||||||
|
|
Loading…
Reference in New Issue