v 10.0 v 11.0 v 12.0 Third Party 74
Required Apps Website Builder (website)
Included Dependencies
Technical Name website_multi_company
LicenseSee License tab
Also available in version v 11.0 v 13.0 v 12.0
You bought this module and need support? Click here!
Required Apps Website Builder (website)
Included Dependencies
Technical Name website_multi_company
LicenseSee License tab
Also available in version v 11.0 v 13.0 v 12.0

Real Multi Website

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

Version: v10.

Tested and maintained by
IT Projects Labs
Assitance: help@itpp.dev

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)
  • grant access for Editors and Designers to edit specific websites only

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

  • Switch to Company 1 from the right upper corner
  • Go to Settings → System Parameters
  • Create a parameter with following values for Paypal 1:
    Key: payment_paypal.pdt_token
    Value: Identity Token for Paypal 1
  • Then switch to Company 2 and make the same steps for Paypal 2

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

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. shop1.com, shop2.com, etc. In this case you need to setup DNS entries on your DNS hosting provider.

For example:

  • shop1.com:

    @   A   your_server_ip_address
  • shop2.com:

    @   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 looks as following:

proxy_set_header Host $host;

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

Patching http.py

For PRODUCTION deployment with websites on subdomains you can use following patch. You need to update odoo/http.py 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 = odoo.tools.config['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: example.com
    • host names:
      • shop1.example.com
      • shop2.example.com
      • shop3.example.com
  • database name: example.org
    • host names:
      • shop1.example.org
      • shop2.example.org
      • shop3.example.org

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 following line to your nginx config (other webservers are supported too - see description of dbfilter_from_header):

proxy_set_header 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 / {

Odoo.sh deployment

In the manager of your domain name registrar you need to add CNAME records for your domains (subdomains), for example:

  • Create a CNAME record shop1.example.org pointing to <yourdatabase>.odoo.com
  • Create a CNAME record shop2.example.org pointing to <yourdatabase>.odoo.com
  • Create a CNAME record example.com pointing to <yourdatabase>.odoo.com

Similar for dev and staging database, but use corresponding domain in odoo.com, e.g. mywebsite-master-staging-12345689.dev.odoo.com

Translation issue

Check this section if you use translations in odoo.

Odoo may have wrong translations, which leads to the error Translation is not valid. You need either fix the translations or apply following workaround:

  • open file odoo/addons/base/ir/ir_translation.py

  • comment out @api.constraints... near def _check_value, that is you shall get something like this (pay attention to # symbol):

    #@api.constrains('type', 'name', 'value')
    def _check_value(self):
        for trans in self.with_context(lang=None):


  • Enable technical features
  • At [[ Settings ]] >> Users >> Users menu and activate Multi Companies and set Allowed Companies
  • Open menu [[ Website Admin ]] >> Configuration >> Websites
  • Create or select a website record
  • Update fields:
    • Website Domain -- website address, e.g. shop1.example.com
    • 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
      • if you install any of supported themes after installing this module, you should click on Reload button to be able to use them
      • for unsupported themes extra actions are required as described below
Note that to use Multi Theme feature you should have the latest updates of Odoo or at least include the following 3 commits:
  • https://github.com/odoo/odoo/commit/15bf41270d3abb607e7b623b59355594cad170cf
  • https://github.com/odoo/odoo/commit/7c6714d7fee4125f037ef194f9cff5235a6c5320
  • https://github.com/odoo/odoo/commit/48fe0a595308722a26afd5361432f24c610b4ba0

To apply them you can use git commands or use patch file commits-for-multitheme.patch. The patch can be found at module source. Exact commands are as following:

If odoo is a git folder:

cd /path/to/odoo/source
git fetch
git cherry-pick 15bf41270d3abb607e7b623b59355594cad170cf
git cherry-pick 7c6714d7fee4125f037ef194f9cff5235a6c5320
git cherry-pick 48fe0a595308722a26afd5361432f24c610b4ba0

if your installation does not have git:

cd /path/to/odoo/source
patch -p1 < /path/to/commits-for-multitheme.patch

Website Menus

You can edit, duplicate or create new menu at [[ Website Admin ]] >> Configuration >> Website 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 Admin ]] >> Configuration >> Multi-Themes. Check that the theme is presented in the list, otherwise add one.

Note: themes that depend on theme_common don't work in demo installation. To avoid this, you have to create database without demo data or comment out demo files in __manifest__.py file of theme_common module like this:

'demo': [
     # 'demo/demo.xml',

Websites designing

  • Open menu [[ Settings ]] >> Users >> Users
  • Select the user to be designing websites
  • On Access Rights tab specify Allowed Companies (Multi Companies should be active already both on current user and on user you make settings for)
  • Your current user (the user you make settings under) should have at least Access Rights administration privilege to be able to make the settings
  • Make sure that your designer user has at least Restricted Editor privilege on Website security category - this is standard setting
  • On Preferences tab specify Editor on websites. Note that you can only select websites with companies from the Allowed companies list


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. If a product doesn't belong to any company (i.e. "Company" field is empty), this product will be available on each website you created.
  • 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

  • activate the developer mode

  • switch to Company 1 from right upper corner

  • go to [[ Settings ]] >> System Parameters

  • create a parameter with following values for the first paypal account:

    Key: payment_paypal.pdt_token
    Value: your Paypal Identity Token
  • switch to Company 2 and add system parameter for second paypal account the same way

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

Steps for websites designing

  • Open one of your sites
  • Log in as website designer
  • RESULT: There will be no Edit menu if your designer has no rights to edit the website
The MIT License (MIT)
Copyright 2020 IT-Projects Labs
Copyright 2015-2020 IT-Projects LLC
Copyright 2015 Ivan Yelizariev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
well done Module
Paul Bake
on 8/10/17, 5:34 PM

this module fullfill the advertised features, an a happy user of it now.

Re: well done Module
Elizaryev Ivan Nikolaevich
on 5/4/21, 7:25 AM Author

Happy to make you happy! Thank you for your feedback!

on 6/11/22, 7:21 AM

hi! work on odoo 14? thks!

We are very interested
Raul Contreras Martinez
on 4/22/21, 2:52 PM

One question.

Is this module will work for Odoo version 14 in the future?

Our customer is in the process to migrate from 12 to 14 in following months.


Demo system availability
Marko Happonen
on 8/30/17, 10:01 AM Confirmed Purchase

Is there a system where you could test the features? Further couple of questions: 1. Can you have common pages between different websites or are all pages website specific? 2. Obviously you can use different websites under the same company? 3. Could you setup the "different websites" behind language selection? This would basically mean that user could have different contend depending on the selected website language.