mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
[FIX] attachment_preview: start needs to return a promise
This commit is contained in:
parent
3cfb33dec6
commit
c65ed97d5c
@ -328,8 +328,10 @@ odoo.define('attachment_preview', function (require) {
|
||||
},
|
||||
|
||||
start: function () {
|
||||
this._super.apply(this, arguments);
|
||||
this.attachmentPreviewWidget.insertAfter(this.$el);
|
||||
var self = this;
|
||||
return this._super.apply(this, arguments).then(function () {
|
||||
return self.attachmentPreviewWidget.insertAfter(self.$el);
|
||||
});
|
||||
},
|
||||
|
||||
_attachmentPreviewWidgetHidden: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user