콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1635 화면

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>
아바타
취소
작성자 베스트 답변

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

아바타
취소
베스트 답변

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/

아바타
취소