This question has been flagged
1 Reply
6787 Views

I'm trying to edit CSS with the Odoo 8 HTML editor to add a new CSS entries but after saving the file nothing happens. How does it work?

Avatar
Discard

Je serai absent ce  vendredi 03.04.2015  - Veuillez SVP transférer votre mail à l'adresse info@davidts.be - Ik zal afwezig zijn op vrijdag 03.04.2015 . Graag AUB U mail naar info@davidts.be te verzenden.

 

Best Answer

To add your custom css file, you need to add the file in you custom view.

        <template id="assets_backend" name="mail_forward assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/YOUR_MODULE/static/src/css/YOUR_CSS.css"/>
                <script type="text/javascript" src="/YOUR_MODULE/static/src/js/YOUR_JS.js"></script>
            </xpath>
        </template>

Avatar
Discard