Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
6321 Weergaven

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
Annuleer
Beste antwoord


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
Annuleer
Beste antwoord

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
Annuleer