Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4922 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

Hello there, 

Have you solved your issue ? 

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Mai 18
3348
0
Apr. 18
7892
0
Feb. 21
2767
2
Juni 19
5181
1
Okt. 18
3742