Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
6160 Переглядів

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

   

 

Аватар
Відмінити