Skip to Content
Menú
This question has been flagged
1 Respondre
2237 Vistes

Hello, I have added style and JavaScript files to Odoo as follows.
But they are not implemented. I can't figure out if they are not connected or if something went wrong. Is there a solution to find out if the files are added correctly or not?
They are not displayed in the 'inspect' either.

<templateid="assets_backend_btn"name="Btn assets"inherit_id="web.assets_backend">        <xpathexpr="script[last()]"position="after">            <linkrel="stylesheet"href="/be4energy_email/static/src/scss/theme.scss"/>            


I don't have any errors but the files don't work at all.

Avatar
Descartar
Best Answer

Hi,

Css and js files are stored as attachment records.

If you want to check that, you only need to write a Select query in your DB. 

select * from ir_attachment where mimetype='text/css'; 
...

Example:

So, if it's there then it exists and if it doesn't exist, go to developer Mode and select regenerate ressources


hope this helps.

Avatar
Descartar