Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Bricoleur
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How can i change menu font colors of default theme?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
menumenuitemfonts
2 Réponses
3509 Vues
Avatar
Dimitri

Greetings everyone,

I'm interested in modifying the font (add custom language fonts) and color of menu items on the default theme. 

I've checked Edit -> Customize, but there doesn't seem to be an option for it. 


I found some articles and forum posts referring the changes on server side.
https://www.cybrosys.com/blog/how-to-add-custom-fonts-in-odoo-16
However, i could not found anu  static/src/font/ directory in theme_default

Could you please provide guidance on how to achieve this? 

Thanks in advance!

0
Avatar
Ignorer
Avatar
Jainesh Shah(Aktiv Software)
Meilleure réponse

Hey Dimitri,


I hope you are doing well.


For adding fonts in default theme, we need to follow the steps defined below:


1. Download and Add fonts file under static > src > fonts folder.

2. Please find code in comment. 

3. Define the scss file in your manifest.

I hope this will help you. 

Thanks & Regards,
Email:   odoo@aktivsoftware.com      

Skype: kalpeshmaheshwari

1
Avatar
Ignorer
Jainesh Shah(Aktiv Software)

Please find code here :-

2. Add primary_variable.scss file under static > src > scss. Add the below defined scss.
@font-face {
font-family: 'HoneyBlackDEMO';
src: url('/your_module_name/static/src/fonts/HoneyBlackDEMO.otf') format('truetype');
}

$o-theme-font-configs: (
'Roboto': (
'family': ('Roboto', sans-serif),
'url': 'Roboto:300,300i,400,400i,700,700i',
),
'Open Sans': (
'family': ('Open Sans', sans-serif),
'url': 'Open+Sans:300,300i,400,400i,700,700i',
),
'Source Sans Pro': (
'family': ('Source Sans Pro', sans-serif),
'url': 'Source+Sans+Pro:300,300i,400,400i,700,700i',
),
'Raleway': (
'family': ('Raleway', sans-serif),
'url': 'Raleway:300,300i,400,400i,700,700i',
),
'Noto Serif': (
'family': ('Noto Serif', serif),
'url': 'Noto+Serif:300,300i,400,400i,700,700i',
),
'Arvo': (
'family': ('Arvo', Times, serif),
'url': 'Arvo:300,300i,400,400i,700,700i',
),
'HoneyBlackDEMO': (
'family': ('HoneyBlackDEMO'),
),
) !default;

Avatar
Dimitri
Auteur Meilleure réponse

Hi Janesh,

Thanks for your reply. I followed the recommended steps.

Inside addons/theme_default/static directory i have created new directories src, under it fonts and scss directories.

Then i have uploaded fonts inside fonts directory and accordingly updated primary_variable.scss file 

@font-face {

    font-family: 'ALK Sanet';

    src: url('/theme_default/static/src/fonts/alk-sanet-webfont.eot'); /* IE9 Compat Modes */

    src: url('/theme_default/static/src/fonts/alk-sanet-webfont.eot?#iefix') format('embedded-opent>

         url('/theme_default/static/src/fonts/alk-sanet-webfont.woff2') format('woff2'), /* Super M>

         url('/theme_default/static/src/fonts/alk-sanet-webfont.woff') format('woff'), /* Pretty Mo>

         url('/theme_default/static/src/fonts/alk-sanet-webfont.ttf') format('truetype'), /* Safari>

         url('/theme_default/static/src/fonts/alk-sanet-webfont.svg#alk_sanetregular') format('svg'>

}


and accordingly __manifest__.py file in theme_default root folder:

'depends': ['website'],

    'assets':{

        'web._assets_primary_variables':[

            'theme_default/static/src/scss/primary_variable.scss',

         ],

    },

However, unfortunately I don't see new fonts in the list:

Anything else i can change to add new fonts?

Thanks

0
Avatar
Ignorer
Jainesh Shah(Aktiv Software)

Hey Dimitri,

I hope you are doing well.

Add the defined scss.

$o-theme-font-configs: (
'Roboto': (
'family': ('Roboto', sans-serif),
'url': 'Roboto:300,300i,400,400i,700,700i',
),
'Open Sans': (
'family': ('Open Sans', sans-serif),
'url': 'Open+Sans:300,300i,400,400i,700,700i',
),
'Source Sans Pro': (
'family': ('Source Sans Pro', sans-serif),
'url': 'Source+Sans+Pro:300,300i,400,400i,700,700i',
),
'Raleway': (
'family': ('Raleway', sans-serif),
'url': 'Raleway:300,300i,400,400i,700,700i',
),
'Noto Serif': (
'family': ('Noto Serif', serif),
'url': 'Noto+Serif:300,300i,400,400i,700,700i',
),
'Arvo': (
'family': ('Arvo', Times, serif),
'url': 'Arvo:300,300i,400,400i,700,700i',
),
'ALK Sanet': (
'family': ('ALK Sanet'),
),
) !default;

Thanks & regards

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Dropdown sub-menu offset away from position
menu menuitem
Avatar
0
déc. 24
1926
How to create a new menu item and place it under other module's menu? Résolu
menu menuitem
Avatar
Avatar
Avatar
Avatar
4
oct. 19
35549
After finishing installation I do not get any menu items the page is blank
menu menuitem
Avatar
Avatar
1
avr. 17
4657
Hide Or Remove Messaging Menu From Top Menu Bar ? Résolu
menu menuitem
Avatar
Avatar
Avatar
2
janv. 24
14827
No such external ID currently defined in the system error while adding a menu item.
menu menuitem
Avatar
Avatar
2
mars 15
8356
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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