OCA / knowledge

Odoo Document & Knowledge Management
http://www.odoo-community.org/project/22
GNU Affero General Public License v3.0
162 stars 333 forks source link

document_url - Uncaught Promise > Only one conditional branching directive is allowed per node #508

Open eabquina opened 2 weeks ago

eabquina commented 2 weeks ago

Module

document_url when activated causes error when opening attachment link on the chatter window

Uncaught Promise > Only one conditional branching directive is allowed per node
OwlError: Only one conditional branching directive is allowed per node
    Error: Only one conditional branching directive is allowed per node
        at normalizeTIf (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1495:86)
        at normalizeXML (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1502:27)
        at _parse (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1407:22)
        at parse (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1405:37)
        at compile (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1503:49)
        at App._compileTemplate (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1569:300)
        at App.getTemplate (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1161:118)
        at new ComponentNode (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1003:133)
        at https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1549:6
        at Chatter.template (eval at compile (https://localhost:8069/web/assets/1/4694d8f/web.assets_web.min.js:1503:374), <anonymous>:166:23)

Describe the bug

A clear and concise description of what the bug is.

This bug renders the file attachment URL, and relevant buttons like the Send Message and Log Note in the chatter, not workgin

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Install document_url module
  2. Open attachments in chatter, or upload a new one

Expected behavior File Attachment links on the chatter section should be working with no errors

Additional context

Firefox : 132.0.2 (aarch64)

Google Chrome | 130.0.6723.117 (Official Build) (arm64)
pedrobaeza commented 2 weeks ago

Do you have an updated browser?

eabquina commented 2 weeks ago

hello @pedrobaeza , capturing Chrome and Firefox versions used to test the issue again now.

Firefox : 132.0.2 (aarch64)

Google Chrome | 130.0.6723.117 (Official Build) (arm64)
pedrobaeza commented 2 weeks ago

Maybe is this? https://github.com/OCA/knowledge/pull/506