Merge PR #294 into 12.0

Signed-off-by StefanRijnhart
This commit is contained in:
OCA-git-bot 2021-08-10 13:06:50 +00:00
commit 5d5e7ecfd9
3 changed files with 6 additions and 4 deletions

View File

@ -80,7 +80,7 @@ Authors
Contributors
~~~~~~~~~~~~
* Holger Brunn <hbrunn@therp.nl>
* Holger Brunn <mail@hunki-enterprises.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
Other credits

View File

@ -1,2 +1,2 @@
* Holger Brunn <hbrunn@therp.nl>
* Holger Brunn <mail@hunki-enterprises.com>
* Dennis Sluijk <d.sluijk@onestein.nl>

View File

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