odoo:从chatter

问题描述 投票:0回答:0

用户将pdf文件附加在odoo中,可以从 聊天

为了优化存储,我将这些PDF移至alfresco服务器。

,然后在ODOO数据库中,我修改了附件记录:

  1. I将类型字段从“二进制”更改为“ URL”。
  2. I将文件的URL存储在URL字段中。
  3. i删除了ir.attachment中的store_fname和charksum的值。
  4. 当我尝试在Odoo中再次查看文件时,我会得到此错误:
    An error occurred while loading the PDF. PDF.js v2.16.105 (build: 172ccdbe5) Message: file origin does not match viewer's
,但是,我可以从Odoo中下载它而不会出现问题。 如何使Odoo允许从聊天中正确显示PDF?

我不知道Odoo和chat不休,但我认为您必须在Alfresco中照顾

corsconfiguration。这将解释错误消息抱怨enter image description hereorigin

pdf odoo alfresco pdf.js odoo-17
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.