Website - Odoo 20 Community Book

Configuration

Settings

Website > Configuration > Settings opens the settings of the application. The top of the page has a selector with the name of the website that is being configured and a button + New Website. Every setting that follows applies to the website in the selector, so each website can be configured on its own.

odoo Development

The block General holds the identity of the site and its basic rules.

Domain. The web address of the site, for example https://www.oakline.example. When a database holds several websites, this address tells Odoo which website to show to a visitor.

Languages. The languages in which the website is offered. The link Install new languages adds more.

Website Identification. The Name of the website and its Favicon, the small icon that is displayed on the tab of the browser.

Company. The company that the website belongs to, which matters in a database with several companies.

Shared Customer Accounts. When it is on, an account created on one website works on all the other websites of the database.

Customer Account. On invitation means that only the people who have been invited can have an account. Free sign up lets any visitor create an account. The link Default Access Rights opens the rights that a new account receives.

Live Chat. Shows the chat window on the site, and the field Channel chooses the live chat channel that answers. The chat is explained in its own chapter.

Google Address Validation. Checks the addresses that customers type, with the Google Places service. It needs an API Key, and the links under the field explain how to get one.

The block eCommerce holds the settings of the online shop, such as the payment and delivery methods, the display of prices, the checkout and the abandoned cart emails. These are described in the eCommerce chapter. The last block of the page is Tracking & SEO.

odoo Development

Plausible Analytics. A simple analytics service that respects the privacy of visitors. When the box is ticked, the field Shared Link Auth takes the key of the shared link of the Plausible dashboard, and the field Site takes the name of the site in Plausible. The link How to create my Plausible Shared Link explains the steps, and See Analytics Report opens the report.

odoo Development

Google Tag Manager / Google Analytics. Connects the site to the Google tools. The field Identifier takes the measurement identifier of Google Analytics, which starts with G, or the container identifier of Tag Manager, which starts with GTM. The link How does GTM work? explains the tool.

odoo Development

Google Merchant Center. Publishes the products of the shop to Google as a product feed. The link Manage feeds opens the feeds.

Content Delivery Network (CDN). Serves the pictures and files of the site from a network of servers close to the visitor, which makes pages load faster. The box opens the field CDN Base URL, where the address of the network is entered, and the field CDN Filters, a list of address patterns that tell which files are served from the network. The list is already filled with the usual patterns for static files, styles, scripts, pictures and attachments.

odoo Development

Robots.txt. The file that tells the search engines which pages they may read. The link Edit robots.txt opens it for editing.

LLMs.txt. A plain text file that explains to AI tools how the content of the site should be read and used. The link Edit llms.txt opens it.

Default Social Share Image. A picture that replaces the logo when a page is shared on a social network. The formats PNG, JPG, WEBP and GIF are supported.

Google Search Console. Connects the site to the Google service that reports how the site appears in search results.

Cookies Bar. Shows a banner that asks the visitor to accept cookies. The text must follow the privacy rules that apply to the company. Under the box, Block tracking 3rd-party services stops the services that track visitors, such as YouTube, Google Maps or Facebook, until the visitor has given consent, and the link Add domains to the block list adds more addresses. After the settings are saved, the field Cookie policy page chooses the page that explains the policy.

odoo Development

When the Cookies Bar is on, Odoo creates the page Cookie Policy and shows a banner at the bottom of every page for visitors who have not answered. The banner says that cookies are used to give a better experience and links to the Cookie Policy. The button Only essentials keeps the cookies that the site needs and refuses the others, and the button I agree accepts all of them. The small cross closes the banner.

odoo Development

Websites

In developer mode, Website > Configuration > Websites lists the websites of the database with the columns Website Name, Website Domain, Company, Default Language and Theme. The handle in front of each line sets the order in which the websites appear in the selector.

odoo Development

A click on a website opens its form.

odoo Development

Website Name (1). The name that is used in the selector and in the title of the pages.

Website Domain (2). The address of the site. It is left empty when the site is reached on the main address of the database.

Website Logo (3). The picture shown in the header of the site. A click on the picture uploads another file.

Company (4). The company that owns the website.

Languages (5). The languages offered to the visitors.

Minimal karma to see other user's profile (6). On sites that use a forum or eLearning, members earn karma points. A visitor must have this many points before the profiles of other members are shown. The value is 150 here.

Custom Code (7). Two code boxes, one for code added to the head of every page and one for code added at the end of the body. They are used for analytics or chat scripts.

Product Page Extra Fields (8). A list of fields of the product that are shown on the product pages of the shop. The button Add a line chooses a field.

odoo Development

Redirects

A redirect sends a visitor from an old address to a new one. It keeps the links of the old pages working when a page is renamed or removed, and it keeps the value that the old address has in the search engines. Website > Configuration > Redirects lists the redirects with the columns Action, Name, URL from, URL to, Website and Active.

odoo Development

The button New opens the form of a redirect. The example below sends the old address /showroom to the page About us.

odoo Development

Name (1). A name for the rule, used in the list.

Action (2). The kind of redirect. The four choices are listed below.

URL from (3). The old address.

URL to (4). The new address. The field is not needed for the action 404 Not Found.

Website (5). Limits the rule to one website. When it is empty the rule applies to all the websites.

Active (6). Turns the rule on or off without deleting it.

Sequence (7). The order in which the rules are tried. The rule with the lowest number is used first.

odoo Development

404 Not Found. The address is removed. It is used to hide a page or a part of the site, for example the shop on a website that does not sell.

301 Moved permanently. The page has a new address for good. Browsers and search engines remember the new address.

302 Moved temporarily. The page is elsewhere for a while. Browsers ask again each time.

308 Redirect / Rewrite. The address of a page is renamed, for example /shop to /garden. Both addresses work, and a visitor who opens the old one is sent to the new one.

After the rule is saved, a visitor who opens the old address /showroom lands on the page About us.

Menus

In developer mode, Website > Configuration > Menus lists the menu items of all the websites in one place. The list is grouped by website, and it shows the Menu name, the Url, whether the item is a Mega Menu, whether it opens in a New Window, the Parent Menu and the Visible Groups. The group None holds the default menu items that are not tied to one website. The Menu Editor of the Site menu is easier for the daily work, and this list is the place to check every item of every website at a glance.

odoo Development
WhatsApp