[FIX] attachment_preview: start needs to return a promise

This commit is contained in:
Holger Brunn 2021-04-30 12:02:14 +02:00
parent 3cfb33dec6
commit c65ed97d5c

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 () {