-
Notifications
You must be signed in to change notification settings - Fork 232
[12.0][muk_web_preview_msoffice] docx, xlsx, pptx url missing fot non-admin user #85
Comments
The error comes from here: /odoo/addons/base/models/ir_attachment.py def _check_contents(self, values): |
Thats why I set the mimetype in the controller. The |
I was finally able to reproduce the bug and will try to fix it asap. |
Please try again now. This seems to be a rather strange behaviour of Odoo. I already opened a ticket in Odoo. |
Sorry, muk_web_utils (12.0.2.9.6) does not solve the problem for me, even more, now the admin together with a non-admin user cannot preview *.docx. Although I understand that this is against the rules - but only this change solved my problem: edit odoo / odoo-server / odoo / addons / base / models / ir_attachment.py remove the condition "not user._is_system () or" |
Ms Office doc-file is previewed correct, but for .docx odoo creates temporary attachment with wrong mime type (text/plain) in case user access is not "Administration/Settings". Thus non-admin user can't preview docx, pptx and xlsx
The text was updated successfully, but these errors were encountered: