Noms de domaine¶
Domain names serve as easily recognizable labels for online locations such as websites, translating difficult-to-remember numerical IP addresses into readable, memorable web addresses.
Odoo Online and Odoo.sh databases use a subdomain of the odoo.com domain by default
(e.g., mycompany.odoo.com).
However, you can register a free domain name on Odoo Online or use a domain name you own.
Register a free domain name¶
To register a one-year free domain name for an Odoo Online database:
Open the database manager.
Click the database name and select Domain Names.
Recherchez le nom de domaine souhaité et vérifiez sa disponibilité.
Select the desired domain name, fill in the Domain Owner form, and click Register. The domain name is directly linked to the database.
Important
A verification email from
noreply@domainnameverification.netwill be sent to the email address provided. Verifying the email address is necessary to keep the domain active and receive the renewal quote before expiration.Finally, map the domain name to your Odoo website.
Conditions générales
The domain name registration is free for the first year. After this period, Odoo will continue to manage the domain in partnership with Gandi.net, the domain name registrar, and you will be charged Gandi.net’s renewal rate. Odoo sends a renewal quotation every year to the email address specified in the Domain Owner form several weeks before the domain’s expiration date. The domain is renewed automatically when the quotation is confirmed.
L’offre est uniquement disponible pour les bases de données Odoo Online.
The offer is limited to one domain name per client.
The offer is limited to the registration of a new domain name.
The offer is available to One App Free plans. Ensure your website contains sufficient original content for Odoo to verify that your request is legitimate and in compliance with Odoo’s Acceptable Use Policy. Given the high number of requests, it can take Odoo several days to review them.
Enregistrements DNS¶
To manage a free domain name’s DNS records:
Open the database manager.
Click the database name and select Domain Names.
Click DNS.
Astuce
A : l’enregistrement A contient l’adresse IP du domaine. Il est automatiquement créé et ne peut pas être modifié ou supprimé.
CNAME: CNAME records forward one domain or subdomain to another domain. One is automatically created to map the
wwwsubdomain to the database. If the database is renamed, the CNAME record must be updated accordingly.MX : les enregistrements MX indiquent aux serveurs où délivrer les e-mails.
TXT: TXT records can be used for various purposes (e.g., verifying domain name ownership).
Il faut compter jusqu’à 72 heures pour que toute modification apportée aux enregistrements DNS se propage dans le monde entier sur tous les serveurs.
Subdomains¶
Adding a subdomain label to a free domain name (e.g., subdomain.yourdomain.com) allows
creating multiple websites or creating database records from emails
received on an alias (e.g.,
email@subdomain.yourdomain.com).
To create a subdomain, add a CNAME record:
Open the database manager.
Click the database name and select Domain Names.
Click DNS.
Click Add DNS record and select CNAME.
Name: enter the desired subdomain label (e.g.,
subdomain).Content: enter original database domain with a period at the end (e.g.,
mycompany.odoo.com.).
Click Add record.
Note
To use a subdomain’s address for your Odoo website, it is necessary to:
Boîte de réception¶
The free domain name does not include a mailbox. However, there are two options for linking it to a mailbox.
Utiliser un sous-domaine¶
After creating a subdomain, go to the database and open
the Settings app. Under the Alias Domain field, enter the subdomain (e.g.,
subdomain.yourdomain.com), click Create, and then Save.
Utiliser un fournisseur de messagerie externe¶
To use an external email provider, it is necessary to add an MX record:
Open the database manager.
Click the database name and select Domain Names.
Click DNS.
Click Add DNS record and select MX.
Fill in the Name, Content, and Priority fields according to the external email provider.
Google Workspace¶
To use a free domain name with Gmail, register for Google Workspace.
Pendant l’inscription, sélectionnez Configurer en utilisant votre domaine existant lorsque vous êtes invité à Choisir une méthode de configuration, puis saisissez votre domaine (par ex. yourdomain.com) lorsque vous êtes invité à Quel est le nom de domaine de votre entreprise ?.
Vérification de la propriété du domaine¶
Connectez-vous à Google Workspace. Lorsque vous êtes invité à vérifier la propriété de votre domaine, cliquez sur Basculer vers la vérification manuelle.
Sélectionnez
gandi.netcomme Hébergeur du domaine et cliquez sur Continuer.
Copiez le contenu du champ Valeur sous Enregistrement TXT. Laissez la fenêtre ouverte.
Add a TXT record.
Open the database manager.
Click the database name and select Domain Names.
Click DNS.
Click Add DNS record and select TXT.
Saisissez
@dans le champ Nom, collez la Valeur fournie par Google dans le champ Contenu, puis cliquez sur Ajouter un enregistrement.
Retournez sur Google Workspace, cochez la case au bas de la page, puis cliquez sur Confirmer.
Rediriger les e-mails vers Gmail¶
Open the database manager.
Click the database name and select Domain Names.
Click DNS.
Click Add DNS record and select MX.
Saisissez
@dans le champ Nom,1dans le champ Priorité,smtp.google.com.dans le champ Contenu, puis cliquez sur Ajouter un enregistrement.
Ouvrez la console d’administration Google Workspace, cliquez sur Activer Gmail pour votre domaine, puis suivez les étapes.
Configurer un nom de domaine existant¶
If you already own a domain name, you can use it for your Odoo website.
Avertissement
To avoid potential SSL certificate validation issues, it is strongly recommended to follow these steps in the specified order:
If you are transferring your website, set up URL redirections before transferring the domain name to preserve the website’s SEO.
Redirect your naked domain name (this step is optional but recommended).
Note
If you are using Cloudflare, follow these instructions to add a CNAME record and secure and redirect a naked domain.
Ajouter un enregistrement CNAME¶
Vous devez ajouter un enregistrement CNAME pour rediriger votre nom de domaine vers l’adresse de votre base de données Odoo.
L’adresse de destination de l’enregistrement CNAME doit correspondre à l’adresse de votre base de données telle qu’elle a été définie lors de sa création. (par ex. mycompany.odoo.com).
L’adresse de destinaton de l’enregistrement CNAME doit être la même que l’adresse principale du projet. Vous trouverez celle-ci sur Odoo.sh en allant dans , ou dans une branche spécifique (production, simulation ou développement) dans , et cliquez sur Comment définir mon domaine ?. Un message indiquera l’adresse que votre enregistrement CNAME doit cibler.
Les instructions spécifiques dépendent de votre service d’hébergement DNS.
Rediriger un domaine nu¶
Note
Bien que facultative, il est recommandé de réaliser cette étape.
Pour permettre aux visiteurs d’utiliser votre domaine nu (un nom de domaine sans sous-domaines ni préfixes) (yourdomain.com), vous devez créer une redirection 301 (une redirection permanente d’une URL vers une autre) vers www.yourdomain.com :
de
http://yourdomain.comvershttps://www.yourdomain.com, etde
https://yourdomain.comvershttps://www.yourdomain.com.
The specific instructions depend on your DNS hosting service. However, not all of them offer to redirect a naked domain to HTTPS. If you encounter any issues, we recommend using Cloudflare.
Utiliser Cloudflare pour sécuriser et rediriger un domaine nu¶
Saisissez votre nom de domaine dans le tableau de bord Cloudflare et sélectionnez Analyse rapide des enregistrements DNS.
Choisissez un plan (le plan gratuit est suffisant).
Suivez les instructions et recommandations de Cloudflare pour finaliser l’activation.
Ajoutez un enregistrement CNAME pour rediriger votre domaine nu (
yourdomain.com) vers le sous-domainewww(par ex.www.yourdomain.com) en cliquant sur DNS dans le menu de navigation, puis sur le bouton Ajouter un enregistrement, et utilisez la configuration suivante :Type: select
CNAME.Name: enter
@(oryourdomain.com).Target: enter
www.+yourdomain.com, e.g.,www.yourdomain.com.Proxy status: toggle the option on (Proxied).
Cliquez sur Enregistrer.
Ajoutez un second enregistrement CNAME pour rediriger le sous-domaine
www(par ex.www.yourdomain.com) vers l’adresse de votre base de données (par ex.mycompany.odoo.com) en utilisant la configuration suivante :Type: select
CNAME.Name: enter
www.followed by your domain name, e.g.,www.yourdomain.com.Target: enter your database’s address as defined at its creation e.g.,
mycompany.odoo.comProxy status: toggle the option off (DNS only).
Cliquez sur Enregistrer.
Define a redirect rule to permanently redirect (301) your naked domain (e.g.,
yourdomain.com) to bothhttp://andhttps://by going to . On that page:Saisissez n’importe quel Rule name.
Dans la section If incoming requests match…, sélectionnez Custom filter expression et utilisez la configuration suivante :
Field: select
Hostname.Operator: select
equals.Value: enter your domain name, e.g.,
yourdomain.com.
Dans la section Then…, utilisez la configuration suivante :
Type: select
Dynamic.Expression: enter the following expression
concat("https://www.yourdomain.com", http.request.uri.path), replacingyourdomain.comwith your domain name.Status code: select
301.Preserve query string: enable the option by ticking the box.
Click Deploy.
Go to and ensure the encryption mode is set to Full.
Mapper un nom de domaine avec une base de données Odoo¶
Avertissement
Ensure you have added a CNAME record to your domain name’s DNS before mapping your domain name to your Odoo database.
Failing to do so may prevent the SSL certificate from being validated and could result in a certificate name mismatch error. Web browsers often display this as a warning, such as « Your connection is not private ».
If you encounter this error after mapping the domain name to your database, wait up to five days, as the validation may still be in progress. If not, you can submit a support ticket, including screenshots of your CNAME records.
Open the database manager.
Click the database name and select Domain Names.
Click Use my own domain.
Enter the domain name (e.g.,
www.yourdomain.com), click Verify, then I confirm, it’s done.
Sur Odoo.sh, allez à , saisissez le nom de domaine que vous souhaitez ajouter, puis cliquez sur Ajouter un domaine.
Voir également
Chiffrement SSL (protocole HTTPS)¶
SSL encryption allows visitors to navigate a website over a secure connection, indicated by the https:// protocol at the beginning of a web address rather than the non-secure http:// protocol.
Odoo generates a separate SSL certificate for each domain mapped to a database using Let’s Encrypt’s certificate authority and ACME protocol.
Note
La génération du certificat peut prendre jusqu’à 24h.
Several attempts to validate your certificate are made over the next five days after you map your domain name to your database.
Si vous utilisez un autre service, vous pouvez continuer à l’utiliser ou simplement changer vers Odoo.
Important
Aucun certificat SSL n’est généré pour les domaines nus (noms de domaines sans sous-domaines ni préfixes).
URL de base web d’une base de données¶
Note
If the Website app is installed on your database, skip this section and continue from the Map a domain name to an Odoo website section.
L”URL de base web ou l’URL racine d’une base de données affecte l’adresse de votre site web principal et tous les liens envoyés à vos clients (par ex. devis, liens du portail, etc.).
Pour que votre nom de domaine personnalisé devienne l’URL de base de votre base de données, accédez à votre base de données en utilisant votre nom de domaine personnalisé et connectez-vous en tant qu’administrateur (un utilisateur faisant partie du groupe de droits d’accès Paramètres sous Administration).
Important
If you access your database using the original Odoo address (e.g., mycompany.odoo.com), the
database’s web base URL will be updated accordingly. To prevent the automatic update of the
web base URL when an administrator logs in to the database, activate the developer mode, go to ,
and enter web.base.url.freeze as the Key and True as the Value.
Note
You can also set the web base URL manually. To do so, activate the developer mode, go to , and
search for the web.base.url key (create it if necessary) and enter the full address of your
website as the value (e.g., https://www.yourdomain.com). The URL must include the protocol
https:// (or http://) and not end with a slash (/).
Mapper un nom de domaine avec un site web Odoo¶
Note
Le mappage de votre nom de domaine avec votre site web n’est pas la même chose que le mappage avec votre base de données :
It defines your domain name as the main one for your website, helping search engines index it correctly.
It defines your domain name as the base URL for your database, including portal links sent to your customers via email.
Si vous avez plusieurs sites web, il associe votre nom de domaine au site web approprié.
Go to . If you have multiple websites, select
the one you want to configure. In the Domain field, enter the URL of your website (e.g.,
https://www.yourdomain.com) and Save.
Avertissement
Le fait de mapper votre nom de domaine sur votre site Odoo empêche Google Search d’indexer l’adresse originale de votre base de données (par ex. mycompany.odoo.com).
If both addresses are already indexed, it may take some time for the indexation of the second address to be removed from Google Search. You can use the Google Search Console to fix the issue.
Subdomains¶
Adding a subdomain label to a domain name (e.g., subdomain.yourdomain.com) allows creating
multiple websites with a single domain name. To do so:
Add a CNAME record to forward your subdomain (e.g.,
subdomain.yourdomain.com) to the address of your Odoo database (e.g.,mycompany.odoo.com).