Skip to Content
Menu
This question has been flagged
1 Reply
2033 Views

Hi,

My css file affects others qweb reports from other models, any condition to prevent it?


<template id="assets_backend" name="static_resources assets" inherit_id="web.report_assets_common">


    <xpath expr="." position="inside">

        <!-- <t t-if="(doc_model == 'sale.order')">  does not work -->

            <link rel="stylesheet" href="/analaqua_quotations/static/src/css/tablas.css"/>

        <!-- </t> -->

    </xpath>

</template>

Avatar
Discard
Best Answer

you linked your css in the main structure of odoo ,then it css will always run in the initial odoo run, try putting the css in your report custom layout so only that style will run whenyou call the report.

Avatar
Discard
Author

Could you be so kind to give me some example how to include css in a custom layout, please?

Related Posts Replies Views Activity
2
Jun 20
5429
2
Oct 22
4552
2
Mar 21
2511
2
Mar 21
7230
0
Dec 20
2696