how to include and use css in a module using odoo 9.0
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
2
Respostas
17069
Visualizações
To use css in odoo create a folder static->src->css-> then create file_name.css.
and in the xml,
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_backend" name="project assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/field_highlight/static/src/css/field_name.css"/>
</xpath>
</template>
</data>
</openerp>
can you pls update it for Odoo 16, sir?
What about Odoo 16?
If your css file is for website, inherit web.assets_frontend. or inherit web.assets_backend
<template id="assets_frontend" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/your_module/static/src/css/sheet.css"/>
</xpath>
</template>
You can watch on Youtube.
https://www.youtube.com/ how to add css file to odoo 10
All the best !
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
5
nov. 24
|
46644 | ||
|
1
abr. 20
|
9897 | ||
|
1
jul. 24
|
1843 | ||
|
1
jul. 24
|
1856 | ||
|
0
set. 23
|
1785 |