多个网站¶
Odoo allows you to create multiple websites from the same database. This can be useful, for example, if you have multiple brands operating under your organization, or if you want to create separate websites for different products/services or audiences.
Creating another website¶
Creating multiple websites requires having at least one domain name. Different alternatives exist, but before creating another website, you should either
Register a domain name for free with Odoo for your first website, then, for your second website, either:
Use a domain name you purchased for your first website, then, for your second website, either:
Once it is time to map your second domain name’s address to your second Odoo website, you can create and map it directly by:
Going to and clicking + New Website.
Choosing a Website Name and entering the second website’s address in the Website Domain field (e.g.,
https://www.yourseconddomain.comorhttps://subdomain.yourdomain.com).Clicking the Create button.
小訣竅
To switch from one website’s frontend to another, click the website selection drop-down in the top right corner and select the website you want to switch to.
网站特定配置¶
Most website settings are website-specific. To access the settings of a website, go to and select the desired website using the website selection drop-down at the top left of the settings page.
備註
Settings shared by all websites are indicated using the (information) icon.
When you create another website, it uses the default settings; settings are not copied from one website to another.
电子商务功能¶
eCommerce features such as products, eCommerce categories, pricelists, discounts, payment providers, etc., can be restricted to a specific website.
客户账户¶
To allow your customers to use the same account on all of your websites, go to and enable Shared Customer Accounts.
定價¶
Products can be priced differently based on the website using pricelists. To do so:
转到 。
向下滚动到 商店 - 产品 部分,选择 价目表 选项 每个产品有多个价格。
点击 价格表 以定义新的价格表或编辑现有的价格表。
选择价格表或点击 新建 创建新价目表,然后选择 配置 选项卡并设置 网站 字段。
Content availability across websites¶
備註
All installed website-related apps (e.g., eCommerce, eLearning, Forum, etc.) and their related pages are also available on the new website. You can remove them from the website’s menu.
By default, most records (products, courses, forum posts, etc.) created from the frontend are displayed on all websites. To restrict the content to a single website, search for the Website field in the backend.
For example, for products, go to , select a product, open the eCommerce tab, and specify which website the product should be available on.
小訣竅
In a multi-company environment, each website can be linked to a specific company so that only that company’s data (e.g., products, events, etc.) is displayed on the website. To display company-specific data, go to Website –> Configuration –> Settings and set the desired company in the Company field.
備註
When generating links, for example, a customer portal link to a quotation, Odoo uses the following logic to select the website domain:
If a company has a single website, that website’s domain is used.
If a company has multiple websites, Odoo uses the domain of the website that was created first. To change the order of priority, enable developer mode, go to , and use the (drag handle) icon to reorder websites.
If a company’s website has no domain, the web base URL is used.
网站页面¶
To modify the website on which a page is published, proceed as follows:
转到 。
打开搜索面板,选择当前发布页面的网站。
勾选要更改页面旁边的复选框。
单击:guilabel:`网站`字段并选择网站,或将其清空以在所有网站上发布页面。
備註
每个网站必须有自己的主页;不得在多个网站上使用同一个主页。
報表¶
Each website has its own analytics. To switch between websites, use the buttons in the top right corner.
Other reporting data, such as eCommerce dashboard data, online sales analyses, and visitors, can be grouped by website by opening the search panel and selecting Group by –> Website.