This question has been flagged
2 Replies
1305 Views

i have css file but when i load it the effect will be in all my instance odoo

the style is for readme model i went it for index.html only not for all odoo


<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Load css File -->
<template id="my_custom_css_asset" name="library assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css" href="/library/static/src/css/readme.css"/>
</xpath>
</template>
</data>
</odoo>
Avatar
Discard
Author Best Answer

the effect of the file css is stil in all odoo not in just my page

Avatar
Discard
Best Answer

Create a module and add your css to the static folder. Then you can install it only in the database you like. See Yenthe's tutorial on how this is done:

https://www.odoo.yenthevg.com/adding-static-resources-css-and-javascript-to-odoo/

Avatar
Discard