-
- Live Preview
+
+
+
+
+
+
+
+
@@ -59,15 +117,16 @@
contact us, if you need any help with your Odoo integration or
addiontal features.
-
+
\ No newline at end of file
diff --git a/muk_web_preview_msoffice/static/description/preview.png b/muk_web_preview_msoffice/static/description/preview.png
new file mode 100644
index 0000000..1deb1cc
Binary files /dev/null and b/muk_web_preview_msoffice/static/description/preview.png differ
diff --git a/muk_web_preview_msoffice/static/description/service_customization.png b/muk_web_preview_msoffice/static/description/service_customization.png
new file mode 100644
index 0000000..3eac664
Binary files /dev/null and b/muk_web_preview_msoffice/static/description/service_customization.png differ
diff --git a/muk_web_preview_msoffice/static/description/service_development.png b/muk_web_preview_msoffice/static/description/service_development.png
new file mode 100644
index 0000000..580d460
Binary files /dev/null and b/muk_web_preview_msoffice/static/description/service_development.png differ
diff --git a/muk_web_preview_msoffice/static/description/service_implementation.png b/muk_web_preview_msoffice/static/description/service_implementation.png
new file mode 100644
index 0000000..d64b66b
Binary files /dev/null and b/muk_web_preview_msoffice/static/description/service_implementation.png differ
diff --git a/muk_web_preview_msoffice/static/description/service_integration.png b/muk_web_preview_msoffice/static/description/service_integration.png
new file mode 100644
index 0000000..76c5e80
Binary files /dev/null and b/muk_web_preview_msoffice/static/description/service_integration.png differ
diff --git a/muk_web_preview_msoffice/static/description/service_support.png b/muk_web_preview_msoffice/static/description/service_support.png
new file mode 100644
index 0000000..4c530fa
Binary files /dev/null and b/muk_web_preview_msoffice/static/description/service_support.png differ
diff --git a/muk_web_preview_msoffice/static/src/js/msoffice.js b/muk_web_preview_msoffice/static/src/js/msoffice.js
index 6ec3935..8124062 100644
--- a/muk_web_preview_msoffice/static/src/js/msoffice.js
+++ b/muk_web_preview_msoffice/static/src/js/msoffice.js
@@ -47,7 +47,20 @@ var PreviewContentMSOffice = AbstractPreviewContent.extend({
renderPreviewContent: function() {
var viewer = 'https://view.officeapps.live.com/op/embed.aspx?src=';
this.$('iframe').attr('src', viewer + encodeURIComponent(this.attachment.url));
- return this._super.apply(this, arguments);
+ return this._super.apply(this, arguments);
+ },
+ destroy: function () {
+ if (this.attachment) {
+ this._rpc({
+ model: 'ir.attachment',
+ method: 'unlink',
+ args: [this.attachment.id],
+ context: session.user_context,
+ }, {
+ shadow: true,
+ });
+ }
+ return this._super.apply(this, arguments);
},
_downloadFile: function() {
return $.ajax({
@@ -59,6 +72,7 @@ var PreviewContentMSOffice = AbstractPreviewContent.extend({
},
_createAttachment: function(file) {
var form = new FormData();
+ form.append('temporary', true);
form.append('ufile', file, this.filename);
form.append('csrf_token', core.csrf_token);
return $.ajax({
diff --git a/muk_web_preview_msoffice/static/src/scss/msoffice.scss b/muk_web_preview_msoffice/static/src/scss/msoffice.scss
index 0b30fff..c789a0b 100644
--- a/muk_web_preview_msoffice/static/src/scss/msoffice.scss
+++ b/muk_web_preview_msoffice/static/src/scss/msoffice.scss
@@ -18,12 +18,13 @@
**********************************************************************************/
.mk_preview_msoffice {
- overflow: auto;
- width: 100%;
+ overflow: hidden;
height: 100%;
- iframe {
- width: 100%;
- height: 100%;
- }
+ width: 100%;
+}
+
+.mk_preview_msoffice iframe {
+ height: 100%;
+ width: 100%;
}