Real Multi Website

by , ,
v 11.0 Third Party 42

440.00 €

Add to Cart Live Preview
Technical name website_multi_company
Also available for v 10.0
Included Dependencies Company-dependent values in System Parameters
Website Multi Theme

Real Multi Website

Set up Multi-Websites, Multi-Theme, Multi-eCommerce, Multi-Company on a single database

Key features:
  • multiple websites in a single database
  • easy to add new websites
  • easy to create website menus
  • use different design (themes) per each website
  • multi-eCommerce
  • multi-payment (different payment methods per each company)
  • compatible with multi-company
  • use any domains for websites (not only subdomains)

The module allows to set up multiple websites on a single database and handles requests in a different company context. It is especially useful for eCommerce to make orders for different companies.

Odoo has been designed to switch website by host name, but this feature is not completed and not supported. This module fills the gap.

How It Works

Go to Website Admin → Configuration → Websites menu and add websites.

In the website creation form specify Website Name, Website Domain (e.g. apple.mycompany.local, samsung.mycompany.local, etc), choose Website Theme you wish, upload a favicon and other fields if needed. Also you will be able to specify company name if your user has ``Multi Companies`` access rights.

You can easily create menus for your websites in Website Admin → Configuration → Website Menus

Open each website and design it whatever you like. Then go to any of them and be sure that each one has own description, own products at shop, etc.
As an example you can see 3 websites below:

  • apple.mycompany.local
  • samsung.mycompany.local
  • xiaomi.mycompany.local

Apple Website <apple.mycompany.local>

If a customer open apple.mycompany.local, he can see for example:

Apple Homepage

Apple Shop (it contains apple devices only)

If a customer make an order at Apple Shop, the created sale order will belong to the associated company - Company 1

Sale Order

Samsung Website <samsung.mycompany.local>

If a customer open samsung.mycompany.local, he can see for example:

Samsung Homepage

Samsung Shop (it contains samsung devices only)

If a customer make an order at Samsung Shop, the created sale order will belong to the associated company - Company 2

Sale Order

Xiaomi Website <xiaomi.mycompany.local>

If a customer open xiaomi.mycompany.local, he can see for example:

Xiaomi Homepage

Xiaomi Shop (it contains xiaomi devices only)

If a customer make an order at Xiaomi Shop, the created sale order will belong to the associated company - Company 3

Sale Order

As a result you can see different websites for different companies in your database.

Multi-payment settings

Note that you can use different payment acquirers per each website. Let's consider how to setup 2 different paypal accounts for 2 different websites.

Go to Invoicing → Configuration → Payments Acquirers and open Paypal acquier form. Click on the Action ⇒ Duplicate button to create the second one

  • For Paypal 1: set Company 1 and provided credentials

  • For Paypal 2: set Company 2 and provided credentials

Detailed instruction about how to configure Paypal account and get Paypal Identity Token you can find here

Free Support

You will get free support and assistance in case of any issues

Want to take a look?

For a live demostration click LIVE PREVIEW button above (near to Add to Cart)

Tested on Odoo
11.0 community
Tested on Odoo
11.0 enterprise

Real Multi Website


Firstly install the external dependencies:

apt-get install ruby-compass
gem install compass bootstrap-sass

Then install this module in a usual way.

Additional modules

Due to technical reasons some multi-website features are located in separate modules, install them depending on your needs:

Domain Names

You will be able to use any website domain names (not only subdomains), e.g.,, etc. In this case you need to setup DNS entries on your DNS hosting provider.

For example:


    @   A   your_server_ip_address

    @   A   your_server_ip_address

Web Server

Your webserver (e.g. Apache or Nginx) must pass header Host to odoo, otherwise there is no way to define which website is used. Required configuration for Nginx and Apache looks as following:


proxy_set_header Host $host;


ProxyPreserveHost On

Single database deployment

No updates in odoo config is required if you use only one database.

Multi database deployment

For multi-database instance odoo has to know which database to use when handle new request without session information. There are two ways to do it:

  • Let user select database manually (bad user experience)
  • Take database depending on host name (prefered)

In the latter case dbfilter is usually used, though it's not flexible enough.

using dbfilter parameter

For TESTING purpose you can use the following configuration:

  • dbfilter: ^%d$
  • database name: example
    • host names:
      • example.shop1.local
      • example.shop2.local
      • example.shop3.local


For PRODUCTION deployment with websites on subdomains you can use following patch. You need to update odoo/ file as following:

# updated version of db_filter
def db_filter(dbs, httprequest=None):
    httprequest = httprequest or request.httprequest
    h = httprequest.environ.get('HTTP_HOST', '').split(':')[0]
    d, _, r = h.partition('.')
    t = r
    if d == "www" and r:
        d, _, t = r.partition('.')
    r =['dbfilter'].replace('%h', h).replace('%d', d).replace('%t', t)
    dbs = [i for i in dbs if re.match(r, i)]

Then you can use following configuration

  • dbfilter: ^%t$
  • database name:
    • host names:
  • database name:
    • host names:

using dbfilter_from_header module

Most flexible way to deploy multi-database system is using dbfilter_from_header (check module description for installation instruction).

In short, you need to add special line to your webserver config (other webservers are supported too - see description of dbfilter_from_header):


proxy_set_header X-Odoo-dbfilter [your filter regex]


Header add X-ODOO_DBFILTER [your filter regex]
RequestHeader add X-ODOO_DBFILTER [your filter regex]

Note, that you probably need to set usual db_filter to .*, because dbfilter_from_header module uses that filter first and then applies filter from header.

Example (we use top level domain .example due to copyright issues, but it could be any top level domains at any combinations):

  • dbfilter: .*

  • database name: software_business

    • host names:
      • miscrosoft-products.example
      • antivirus.example
      • android.antivirus.example
  • database name: delivery_business

    • host names:
      • pizzas.example
      • china-food.example
  • Nginx:

    server {
      listen 80;
      server_name miscrosoft-products.example antivirus.example android.antivirus.example;
      proxy_set_header Host $host;
      proxy_set_header X-Odoo-dbfilter ^software_business\Z;
      location /longpolling {
      location / {
    server {
      listen 80;
      server_name pizzas.example china-food.example;
      proxy_set_header Host $host;
      proxy_set_header X-Odoo-dbfilter ^delivery_business\Z;
      location /longpolling {
      location / {


<VirtualHost *:80>
        ServerName miscrosoft-products.example antivirus.example android.antivirus.example

            ProxyPreserveHost On
            Header add X-ODOO_DBFILTER "software_business"
    RequestHeader add X-ODOO_DBFILTER "software_business"

            ProxyPass /
            ProxyPassReverse /

            ProxyPass /longpolling/
            ProxyPassReverse /longpolling/


<VirtualHost *:80>
    ServerName pizzas.example china-food.example

            ProxyPreserveHost On
            Header add X-ODOO_DBFILTER "delivery_business"
    RequestHeader add X-ODOO_DBFILTER "delivery_business"

    ProxyPass /
            ProxyPassReverse /

            ProxyPass /longpolling/
            ProxyPassReverse /longpolling/



  • Enable technical features
  • At [[ Settings ]] >> Users >> Users menu and activate Multi Companies and set Allowed Companies
  • Open menu [[ Website ]] >> Configuration >> Websites
  • Create or select a website record
  • Update fields:
    • Website Domain -- website address, e.g.
    • Company -- which company is used for this website
    • Favicon -- upload website favicon
    • Multi Theme -- select a theme you wish to apply for website, e.g. theme_bootswatch
      • Click on Reload Themes button before using new theme
      • For unofficial themes extra actions are required as described below

Website Menus

You can edit, duplicate or create new menu at [[ Website ]] >> Configuration >> Menus -- pay attention to fields Website, Parent Menu. In most cases, Parent Menu is a Top Menu (i.e. menu record without Parent Menu value). If a website doesn't have Top Menu you need to create one.

Note. Odoo doesn't share Website Menus (E.g. Homepage, Shop, Contact us, etc.) between websites. So, you need to have copies of them.


After installing theme, navigate to [[ Website ]] >> Configuration >> Multi-Themes. Check that the theme is presented in the list, otherwise add one.

If you get error The style compilation failed, add modules to Dependencies field. It allows to attach theme-like dependencies to corresponding theme and prevent themes compatibility problems.


For all examples below:

  • configure some WEBSITE1 for HOST1 and COMPANY1
  • configure some WEBSITE2 for HOST2 and COMPANY2

Steps for Website

  • open HOST1/
  • add Text block "text1" to Home Page
  • open HOST2/ -- you don't see "text1"
  • add Text block "text2" to Home Page
  • open HOST1/ -- you see "text1" and don't see "text2"

The same works if you create new page, new menu

Steps for eCommerce

  • install website_shop (eCommerce) module
  • open Invoicing >> Configuration >> Payments Acquirers and create payments acquirers per each company
    • use [Action] -> Duplicate button
    • don't forget to click [Unpublished On Website] button to activate it
  • open [[ Sales ]] >> Products and create product per each company if they don't exist
  • open HOST1/shop, make order, open backend -- created order belongs to COMPANY1
  • open HOST2/shop, make order, open backend -- created order belongs to COMPANY2


Note that you are able to use different payment acquiers per each company.

E.g. to use different Paypal accounts for different websites you need to make the following steps:

  • go to [[ Invoicing ]] >> Configuration >> Payments Acquirers
  • open Paypal acquirer and duplicate it by clicking [Action] -> Duplicate
  • for the first one set Company 1, for the second - Company 2
  • specify the credentials provided for each acquirer:
    • Paypal Email ID
    • Paypal Merchant ID
    • Paypal PDT Token

Follow the instruction to know how to configure Paypal account and get Paypal Identity Token

Please log in to comment on this module

Demo is working
by on

Demo is working. If you have a problem with getting demo or any other questions please contact us by email

Your Login and demo link is not working
by on

I have check on "Live Preview " button next to But button but i can not open demo link properly i have need to check link immediately. Forward me link @ following Address.

No straight forward implementation
by on

I have server which as multiple databases. One of the database will use this module for multi-company and multi-website. I purchased the module but I can't solve its problems I need detailed support for this module (

please support me about this module
by on

please support me about this module my email: