Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LESS doesn't work on login page. #13324

Closed
DanielMescoloto opened this issue Aug 30, 2016 · 6 comments
Closed

LESS doesn't work on login page. #13324

DanielMescoloto opened this issue Aug 30, 2016 · 6 comments
Labels
Question not reporting a bug but asking a question

Comments

@DanielMescoloto
Copy link

DanielMescoloto commented Aug 30, 2016

Impacted versions: V9.0

Issue:
On login page, if I link a less, Odoo is not generating the css on the fly, but on backend and website's frontend the less is working fine. The issue is only on login page.

example:
<link rel="stylesheet" type="text/less" href="/mymodule/static/src/less/style.less"/>

I call this line in "web.assets_backend" template and works
but this same line in web.login_layout doesn't

@Yenthe666
Copy link
Collaborator

Hi @DanielGasperoni,

Thanks for your report but Github issues are only for reporting issues in the official Odoo code.
However, I see you're talking about web.assets_backed while you're trying to add less to the front-end. If I'm not mistaking you should add an import for web.assets_frontend, since you're working in the website.

P.S: It is best to ask these kind of questions on the official Odoo help forum (help.odoo.com).

Regards,
Yenthe

@Yenthe666 Yenthe666 added the Question not reporting a bug but asking a question label Aug 30, 2016
@rafaeljuzwiak
Copy link

rafaeljuzwiak commented Aug 30, 2016

Actually I had the same issue also a while back. I was trying to edit the login page css, and I couldn't figure out why my .less css wasn't parsed by just extending the login template page. Latter I figure out the layout was actually the website layout, and I just added there.

However, it would make sense this .xml that contains the login page layout declaration be capable of parsing the .less files, wouldn't?

Thanks

@Yenthe666
Copy link
Collaborator

Hi @rafaeljuzwiak,

The back-end (read everything not website related) and the front-end (website related) are cleanly separated. This means you'll have to call the right asset (web.assets_backend or web.assets_frontend), this was a clear choise by the developers.

@DanielMescoloto
Copy link
Author

DanielMescoloto commented Aug 30, 2016

@Yenthe666
The Login Page is not calling neither web.assets_backed nor web.assets_frontend when you haven't install any website app (blog, website, etc)

Actually, there are two login pages:
one inside the website (this one is calling the web.assets_frontend)
and the another is just the login page (that one with "manage database" below the form)
just this one that it's not working.

Sorry, I didn't post on forum because I assumed this was a bug.

@Yenthe666
Copy link
Collaborator

Hmm I see, @JKE-be can you shed some extra light on this please?
I bet you've got more info.

@mah007
Copy link

mah007 commented Jul 8, 2019

any solution for that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question not reporting a bug but asking a question
Projects
None yet
Development

No branches or pull requests

4 participants