Skip to content

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

@eabquina

Description

@eabquina

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions