Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2259 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ