Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2679 Widoki

Good morning community.
I am brand new to odoo and I need some help.

I am working on email templates. As we all know, in html emails, the safest way to add styles is to do it "inline".

The email templates I'm working on are dynamic. As in, there's multiple sections in a single xml file that can be loaded separately based on an ID.

The styles and format would be the same. For that reason I wanted to at least place the css in an "style" tag at the top of the xml file, so it applies to any given section of the template.


That would not be ideal because I'd have to add the "style" tag to other xml template files and it would be hard to maintain.

My questions is:
Can I "include/import"  the contents of a css file into an xml template file?

That way I only have to reference the file and maintain only one file for multiple templates.

Any feedback is highly appreciated.

Awatar
Odrzuć

Please refer to the below link. It will help you to know more about your question:-
https://www.odoo.com/es_ES/forum/ayuda-1/how-to-call-custom-css-in-mail-template-156396

Powiązane posty Odpowiedzi Widoki Czynność
2
maj 21
6888
1
sie 17
7341
2
mar 15
16906
3
lis 21
6034
0
lip 21
2629