[FIX] web_widget_one2many_product_picker: Redraw records in 'Lines' section

This commit is contained in:
Alexandre D. Díaz
2021-05-04 15:13:54 +02:00
parent 37992bb486
commit c094c5853a

View File

@@ -142,11 +142,6 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRenderer",
}
}
if (this.search_group.name === "main_lines") {
_.invoke(to_destroy, "destroy");
return $.when();
}
// If doesn't exists other records with the same product, we need
// create a 'pure virtual' record again.
for (var index_destroy in to_destroy) {