跳至內容
選單
此問題已被標幟
1 回覆
4930 瀏覽次數

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.

頭像
捨棄
最佳答案

Hello there, 

Have you solved your issue ? 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 18
3351
0
4月 18
7895
0
2月 21
2770
2
6月 19
5182
1
10月 18
3744