콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6047 화면

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



아바타
취소
베스트 답변

The module website_less is at Odoo apps:

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

아바타
취소
작성자

Thanks a lot @Axel

Happy to help

관련 게시물 답글 화면 활동
1
4월 16
47957
2
8월 15
4339
Theme 해결 완료
2
11월 24
4272
0
10월 24
1290
0
4월 24
2122