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

I'm trying to add  few tables to my module's description using the `<table>` tag. But there's no styling provided for the `<table>` tag by default. So it does not match with the rest of the content. I want to make some minor styling to the table's `td` `tr` tags, like changing the padding value.

Can I embed a css file to be used with index.html, if so how? I can inline css in index.html, but since I have several tables it is too much work.

아바타
취소
베스트 답변


Facing same problem odoo not allow any internal or external style also not allowing few of style properties into inline like flex and shadows also animations


Kindly guide me how can we define index page.

아바타
취소
베스트 답변

Hello @Gayan


You can add an external css file to assets backend using xpath like this:


this needs to be added in xml


<template id="assets_backend" name="Backend Assets"

              inherit_id="web.assets_backend">

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

            <link rel="stylesheet" type="text/css"

                  href="/module name/path to file/backend.css"/>

        </xpath>

    </template>

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

 

아바타
취소