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

As I understand, all .less files have to be compiled using less.js in order for stuff like variables to work (hence why we need to install less when setting up Odoo). However when writing Javascript for Odoo modules the global variable "less" is not available. Is it omitted on purpose?

I tried adding less.js in my custom module manualy, which works, and then I can use the functions provided by the "less" variable, however none of the variables declared in Odoo's modules .less files are available to me.

My goal is to dynamically change a .less variable in another module, using less.js's function modifyVars(). Would really appreciate if someone could at least put me on the right path on how to achieve this.

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

Hello there, 

Have you solved your issue ? 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 18
3345
0
thg 4 18
7890
0
thg 2 21
2767
2
thg 6 19
5181
1
thg 10 18
3741