Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5905 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď


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.

Avatar
Zrušit
Nejlepší odpověď

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

   

 

Avatar
Zrušit