Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2242 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona