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

how to include and use css in a module using odoo 9.0

아바타
취소
베스트 답변

To use css in odoo create a folder static->src->css-> then create file_name.css.

and in the xml,

<?xml version="1.0" encoding="utf-8"?>
<openerp>
 <data>
     <template id="assets_backend" name="project assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                 <link rel="stylesheet" href="/field_highlight/static/src/css/field_name.css"/>
</xpath>
 </template>
 </data>
</openerp>
아바타
취소

can you pls update it for Odoo 16, sir?

What about Odoo 16?

베스트 답변



If your css file is for website, inherit   web.assets_frontend. or inherit web.assets_backend

<template id="assets_frontend" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
 <link rel="stylesheet" href="/your_module/static/src/css/sheet.css"/>
 </xpath>
</template>


You can watch on Youtube.

     https://www.youtube.com/ how to add css file to odoo 10

All the best ! 



아바타
취소
관련 게시물 답글 화면 활동
5
11월 24
46697
1
4월 20
9945
1
7월 24
1870
1
7월 24
1871
0
9월 23
1809