[FIX] web_widget_one2many_product_picker: Use a compact list of old widgets to destroy

This commit is contained in:
Alexandre D. Díaz
2021-02-15 20:06:21 +01:00
parent dccab1502a
commit 6fd1f4f7e2

View File

@@ -271,7 +271,7 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRenderer",
*/
_renderView: function () {
var self = this;
var oldWidgets = this.widgets;
var oldWidgets = _.compact(this.widgets);
this.widgets = [];
this.$recordsContainer = $("<DIV/>", {
class: "w-100 row",