Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Use Google Fonts locally in Odoo website

形象
odoo
形象
丢弃
5 答案
0
形象
odoo
最佳答案

A quick and dirty fix:

Comment out in /addons/website/static/src/scss/website.scss:

$-seen-urls: ();
@each $alias, $key in $o-font-aliases-to-keys {
$-url: o-get-font-info($alias, 'url');
@if $-url and index($-seen-urls, $-url) == null {
$-seen-urls: append($-seen-urls, $-url);
// @import url("https://fonts.googleapis.com/css?family=#{unquote($-url)}&display=swap");
}
}

形象
丢弃
0
形象
odoo
最佳答案

I found this tool (no affiliation and unfortunately only in German) helpful to check if all requirements are fulfilled (i.e., check if font is loaded from the Google servers, or not):

https://sicher3.de/google-fonts-checker/

形象
丢弃
0
形象
odoo
最佳答案

Hi to all
To fix this you can deploy this module :

https://apps.odoo.com/apps/modules/13.0/bytist_fix_google_font/

形象
丢弃
0
形象
odoo
最佳答案

You will have to load the font files in your static directory and include it as an asset by inheriting the web front end assets xml file then applying the fonts using a css.

3 注释
形象
丢弃
形象
odoo
-
形象
odoo
-

Hi guys, is there any update here? Facing the same issue and interested in how you solved this :)

形象
odoo
-

Thanks Mario :)
Then we'll patch odoo here

0
形象
odoo
最佳答案

Is there an upstream patch for this already. This is becoming a serious threat for German customers. See https://www.datenschutzticker.de/2022/03/einsatz-von-google-fonts-ohne-einwilligung-ist-rechtswidrig/

5 注释
形象
丢弃
形象
odoo
-

There is a module for replacing Google fonts with BunnyFonts:

https://apps.odoo.com/apps/modules/15.0/hav_remove_google_fonts/

形象
odoo
-

mh thanks but that doesn'r really solve the core problem for the OLG Munich but should be sufficiently good to avoid trouble with lawyers for a while at least ;-)

形象
odoo
-

Even if the fonts are hosted in the EU, the fonts are fetched from a 3rd party. To make 100% sure, put the fonts locally within an addon on the Odoo server.

形象
odoo
-

yes @mario and this one doesn't work without having a doorkeeper route in Odoo as it is an integral part of each website rendered and fetched even before any consent can be given

形象
odoo
-

Besides that oi think thats a core problem to Odoo, that Odoo S.A. should be solving. And i am pretty sure they will as all SaaS instances are similarly affected