Multi Website Setup Instructions
This is a server license for the modules. It can only be run on one server.
There are two primary modules included with this module:
pr1_Multi_Website and pr1_multi_website_manager
There are various other side modules that are additional modules that need to be installed if items like shop are needed to work cross website.
Multi Website Manager
This is the management Odoo instance that holds information regarding which websites link to which database. Default install to a database called pr1_multiwebsite.
This module is the module that is installed in a standard Odoo database and allows the Multiple Website instances to work.
It is fully possible to install these modules in an existing environment. We recommend TESTING prior to installing on production websites!
We are also more than happy to assist with minor issues and develop additional features if necessary.
In an ideal install scenario an Odoo instance is created with a database called pr1_multiwebsite, the Website Manager module is installed and no other modules are installed to that database.
While this is not fully recommended due to having the management module merged with the websites, this scenario is also possible.
This simple configuration is also possible
There is the opportunity to add a custom config option to the Odoo.conf file.
This will change the location the system uses to lookup where the 'core' database is for the management module.
Decide prior to installing any database where the management database will be located. We recommend using a separate Odoo database to host this module (Option 1). Also decide on the name of the database. If you are using anything other than pr1_multiwebsite then you must alter your Odoo config file to tell Odoo where the master database is.
We have setup our own DNS for your testing. You can use anything.test.pr1.xyz as your host headers. e.g. bob.test.pr1.xyz, susan.test.pr1.xyz and they will loop back to your computer.
These install instructions will cover option 1, however after following these instructions it should be clear how to install under other methods.
This option will assume the default database name is used.
Add a new database to Odoo pr1_multiwebsite.
Install PR1 Multi Website Manager.
Goto another Odoo database or create a new database.
Install Multi Website
Add a new database to Odoo
Create a new database. pr1_multiwebsite
Install management module
Now the module is installed it creates its own menu. Multi Website Management.
Inside the menu are Odoo Databases and Websites. It is not necessary to use this Odoo database anymore since the other databases with the multi website module will communicate with this database.
However in large server environments you may wish to use this to monitor websites, create new websites and assign host headers to them. (Note do not create Odoo databases from here).
Install new database/use existing one
Goto the database you wish to install the Multi Website module on. (We recommend testing first prior to using live databases). - In this case we have used multiwebsite.1.co.uk.
Install the Multi Website Management Database.
The module will install, detect any existing websites/themes and install to those. - Note it may take some time depending on the size of your Odoo database/amount of themes installed for this to complete.
Goto the Administrator user and ensure that you have added the Multi Website Admin role to the Administrator user (Or any user you want to manage the multiple websites).
Menu Structure Overview
Website List is added to the Website Admin menu.
This section allows you to enter details about your multiple websites, such as theme, host header information etc.
The website settings menu has been altered so that the different websites you create can be selected from this menu and configured with items such as the Google Analytics key, social media etc.
Adding your first Host Header
From the website list pick the website you want to associate with your current domain name (www.whatever.com), - TIP - You can normally ignore the Website 0.0.0.0, Odoo normally uses localhost as the default website. This is vital and 'starts' the multi website module, prior to host headers being added the system will work like the module was not installed.
What is a host header? A host header is like a phone book record, it tells the computer which website to load when you type in a specific domain. We have setup our DNS so you can use anything.test.pr1.xyz for your testing.
Add your first host header (this will be the domain that your site is running off). In the case of the example the domain is multiwebsite.1.co.uk.
You can select the base theme in the website list. Further theme selection (the specifics) is still done in the front end website.
Sync Code button. This is not needed unless there are items clearly missing off the website list/theme list.
New Menu (Not visible on this form yet, it allows you to create a new menu independent of the main website.
Customise your theme
You can customise your theme from the main website as usual.
Creating new website
Goto the website list and hit create.
For testing you will need access to your hosts file. In windows this is in (c:\windows\system32\drivers\etc\hosts) (You can run notepad as administrator and goto this location).
You can then add in host headers such as:
Please google your host header for linux.
In a live environment or in the internet, simply point your domains at your Odoo server. You can also use sub domains for testing, such as abc.xyz.com, def.xyz.com etc.
Or alternatively you can use our test DNS where you can do anything.test.pr1.xyz
Creating new website - 2
Here you can put in the name of the website and the default language and hit save.
Creating new website - 3
Now you can choose your theme and select your host header. (This example is multiwebsite.2.co.uk.
The create menu will create a specific menu unique to this website. At this point in the tutorial lets leave that alone.
Creating new website -4
If you need to configure them ore detailed website settings you can now configure them from the Settings menu.
Visiting your second website & Setting Theme
Goto the host header you configured on the second website (in this case multiwebsite.2.co.uk) - Note you will need to log in again.
Both websites side by side
Here you can see both websites side by side, running off the same database with different themes/content.
Create new menu
If you wish the menu to be seperate on the other website.
Go back to the website list and click create menu.
This will create a new blank menu.
Create additional pages on website 2.
The picture to the left shows the different websites different menus running from the same database.
There are other modules available to be purchased alongside this module. These are: Event, Blog, Forum, Slides and Shop.
Each of these modules allows the relevant items to be split out per website.
The shop module allows product categories to be separated per website. You can also add multiple websites to the categories allowing products to be shared.
Shop Module - Shop Pages Compared
The image to the left shows the same database with different items available from the shop depending on the setting picked above.
Event Categories can be configured specific to websites. Similar functionality exists on Slides, Forum etc.
Event module side by side