Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6340 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất


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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

   

 

Ảnh đại diện
Huỷ bỏ