DIOR27
DIOR27

Reputation: 23

Odoo: Error viewing PDF stored on external server (Alfresco) from Chatter

I am working with Odoo and I have a problem viewing PDFs in Chatter after moving the files to an external server (Alfresco).

What I do:

  1. Users attach PDF files in Odoo, which can be viewed correctly from Chatter.
  2. To optimize storage, I move these PDFs to an Alfresco server.
  3. Then, in the Odoo database, I modify the attachment record:

When I try to view the file again in Odoo, I get this error:

An error occurred while loading the PDF.
PDF.js v2.16.105 (build: 172ccdbe5)
Message: file origin does not match viewer's

enter image description here

However, I can download it without problems from Odoo. How can I make Odoo allow to display the PDF correctly from Chatter?

Upvotes: 1

Views: 39

Answers (1)

Heiko Robert
Heiko Robert

Reputation: 2737

I don't know odoo and chatter, but I think you have to take care of CORS Configuration in Alfresco. That would explain the error message complaining about origin.

Upvotes: 1

Related Questions