Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Use Google Fonts locally in Odoo website

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
googlefonts
8 Besvarelser
9662 Visninger
Avatar
Mario Gielissen

The Odoo website module uses several Google fonts, hosted by Google servers. Is there a way to override this and host the fonts locally?

1
Avatar
Kassér
Avatar
Mario Gielissen
Forfatter Bedste svar

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");
}
}

3
Avatar
Kassér
Avatar
Pierre Delacroix (pde)
Bedste svar

Hello, from Odoo 15, we added a toggle to select if the google font should be served by Google server or by the Odoo server:

2
Avatar
Kassér
Gregor Huyskens

Must be improved!
Please prefill the input field and also supply a dialog to switch all fonts to "local"!
Crucial and legally important function !

Avatar
Jort de Vreeze
Bedste svar

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/

1
Avatar
Kassér
Avatar
imad chaikhi
Bedste svar

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

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

1
Avatar
Kassér
Avatar
Eman Abdulmalik
Bedste svar

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.

1
Avatar
Kassér
Mario Gielissen
Forfatter

Indeed, but the Google Fonts/files are still loaded within the website module.

https://github.com/odoo/odoo/blob/675430d53f6ef048b77afe95395bd760d3f5a2be/addons/website/static/src/scss/website.scss

David Fleischmann

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

David Fleischmann

Thanks Mario :)
Then we'll patch odoo here

Avatar
Frederik Kramer
Bedste svar

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/

1
Avatar
Kassér
Mario Gielissen
Forfatter

There is a module for replacing Google fonts with BunnyFonts:

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

Frederik Kramer

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 ;-)

Mario Gielissen
Forfatter

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.

Frederik Kramer

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

Frederik Kramer

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

Avatar
Gregor Huyskens
Bedste svar


There is a way to change the font source  from default "google servers" to a local font set.   (Website Editor -> "Theme" -> Paragraph -> Font Familiy
The dialog is very bad in the sense that all Google fonts are preset as server loaded and instead of allowing a change easily, a broken form asks to replace the (already existing) font source  AND confirm to store this on the Odoo server.

All preset to cloud! (NONSENSE!)

When selecting one of the fonts we hit this broken dialog:

We have to enter the complete font url.  And change the default "Google Server".
You would have to reset all fonts with this lengthy steps instead of finding a simple switch to "local".

This topic is terribly neglected and misformed in Odoo by - probably - some Google "believers" or interest to push Google tools.
Using Google Fonts is a much worse form of tracking usage statistics than any cookies can be.
When hitting a google fonts block  the Website Editor (or other wysiwyg components) can also fail badly without a usefull error.

0
Avatar
Kassér
Avatar
Miguel Martínez López
Bedste svar

Hi!


I created a module that automatically hosts all the Google fonts used in the website module and replaces the links in the asset bundle with external references to the Google fonts with internal links pointing to the hosted fonts. In this way, privacy problems are mitigated and the solution is more compliant with the European regulation for the GDPR. It works for odoo 18. It's free.


Search this app in the odoo app store: local_google_fonts

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
How can we remove font.googleapis..ccs from Odoo 11 reports?
google api fonts
Avatar
0
feb. 19
5945
Stuck at including a new custom font in the web module
fonts
Avatar
Avatar
2
aug. 24
2831
Google Drive and Google Sheets integration is going away Løst
google
Avatar
Avatar
Avatar
3
mar. 24
6218
Odoo 11e and google synchronisation (google sign in, google drive / spreadsheet)
google
Avatar
Avatar
1
okt. 18
3629
I have installed Google spredsheet module, what is next?
google
Avatar
0
okt. 18
4489
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now