[IMP] 12.0-imp-web_widget_one2many_product_picker_sale_stock: Check if the element exists

This commit is contained in:
Alexandre D. Díaz
2022-01-14 22:17:46 +01:00
parent a75112624c
commit ceb264170e

View File

@@ -9,7 +9,9 @@ odoo.define("web_widget_one2many_product_picker_sale_stock.QtyAtDateWidget", fun
QtyAtDateWidget.include({
on_detach_callback: function() {
this.$el.popover("dispose");
if (this.$el) {
this.$el.popover("dispose");
}
},
});
});