[FIX] attachment_preview: start needs to return a promise

This commit is contained in:
Holger Brunn 2021-04-30 12:02:14 +02:00 committed by Anjeel Haria
parent d3c98fa4f7
commit be25354963

View File

@ -328,8 +328,10 @@ odoo.define('attachment_preview', function (require) {
}, },
start: function () { start: function () {
this._super.apply(this, arguments); var self = this;
this.attachmentPreviewWidget.insertAfter(this.$el); return this._super.apply(this, arguments).then(function () {
return self.attachmentPreviewWidget.insertAfter(self.$el);
});
}, },
_attachmentPreviewWidgetHidden: function () { _attachmentPreviewWidgetHidden: function () {