Website Local Font
website_local_font · OCA/website
-
Security25/25No findings
-
Activity12/25Last human commit 21 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module allows to add local fonts on Odoo website.
By default, Odoo only allows to upload fonts available from Google (fonts.google.com) and they can be made available locally or from Google's server in addition to the fonts made available via website theme modules. But there's no option to upload and have local fonts available across all website themes.
To overcome this limitation, this module has been developed to allow users to upload proprietary (or custom) fonts in the most widely used font formats - otf, ttf, woff and woff2 and make it available across all website themes.
The fonts can be deleted as well if not needed anymore.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
add_local_font(self, font_name, extension, file_data)
No new fields.
Public methods (1)-
make_scss_customization(self, url, values)@api.modelAdded handling for local fonts deletion and addition in scss
Loading…