Skip to content

[18.0] brand_external_report_layout: CSS loading error due to wrong asset path in manifes #319

Description

@DealTechSrl

Wrong asset path in brand_external_report_layout

Problem

Reports fail while compiling web.report_assets_common:

Could not get content for /brand_external_report_layout/static/src/legacy/scss/asset_styles_brand_report.scss.

Cause

The asset path has a leading slash in __manifest__.py and views/report_template.xml:
Errore nel caricamento dei CSS.

/brand_external_report_layout/static/src/legacy/scss/asset_styles_brand_report.scss

Actual manifest:

"web.report_assets_common": [
    "/brand_external_report_layout/"
    "static/src/legacy/scss/asset_styles_brand_report.scss"
]

Solution

Remove the leading slash:
Manifest update:

brand_external_report_layout/static/src/legacy/scss/asset_styles_brand_report.scss

"web.report_assets_common": [
    "brand_external_report_layout/static/src/legacy/scss/asset_styles_brand_report.scss"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions