Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eabquina opened this issue Nov 11, 2024 · 3 comments
Labels

Comments

@eabquina
Copy link

eabquina commented Nov 11, 2024

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 eabquina added the bug label Nov 11, 2024
@eabquina eabquina changed the title document_url document_url - Uncaught Promise > Only one conditional branching directive is allowed per node Nov 11, 2024
@pedrobaeza
Copy link
Member

Do you have an updated browser?

@eabquina
Copy link
Author

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
Copy link
Member

Maybe is this? #506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants