knowledge icon indicating copy to clipboard operation
knowledge copied to clipboard

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

Open eabquina opened this issue 1 year ago • 3 comments

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)

eabquina avatar Nov 11 '24 20:11 eabquina

Do you have an updated browser?

pedrobaeza avatar Nov 12 '24 07:11 pedrobaeza

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)

eabquina avatar Nov 13 '24 13:11 eabquina

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

pedrobaeza avatar Nov 13 '24 15:11 pedrobaeza

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar May 18 '25 12:05 github-actions[bot]