How to add a stylesheet to your module?

  • language
      English
  • type
      technical
  • info created for version
      14.0
  • mvc
      css , XML (records/views/templates)
Add to Cart

Add this code to your view ...

<template id="assets_frontend" inherit_id="website_sale.assets_frontend">
    <xpath expr="link[last()]" position="after">
        <link rel="stylesheet" type="text/scss" href="/module_name/static/src/scss/style.scss"/>
    </xpath>
</template>

For reports ...


<template id="report_assets_common" inherit_id="web.report_assets_common">
<xpath expr="." position="inside"> <link rel="stylesheet" type="text/scss" href="/module_name/static/src/scss/style.scss"/> </xpath> </template>