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

Hi All,

I have developed new module for odoo theme for testing.

Having problem while applying .less style file.

I am following odoo technical tutorial for them development

I have noticed in v8 there is no module with name website_less. which is given as dependency in example.

May be because of that i am not able to add my custom .less file via xml file.


<template id="mystyle" name="My style" inherit_id="website.assets_frontend">
<xpath expr="link[last()]" position="after">
<link href="/testtheme_/static/less/style.less" rel="stylesheet" type="text/less"/>
</xpath>
</template>


Error:

Element '<xpath expr="link[last()]">' cannot be located in parent view

 

These is the code i am following to link my .less file


Anyone has idea how does .less file to link like css and jss in odoo v8.

I am following this link : https://www.odoo.com/documentation/8.0/howtos/themes.html

Need help on this.

Thanks



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

The module website_less is at Odoo apps:

https://www.odoo.com/apps/8.0/website_less/

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks a lot @Axel

Happy to help

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 16
47649
2
thg 8 15
4122
Theme Đã xử lý
2
thg 11 24
2273
0
thg 10 24
1069
0
thg 4 24
1877