Odoo Help


How to setup 2 companies in one database?

on 3/21/13, 1:25 PM 1,841 views

I have no idea how to start with this. Yes ok multi-company will be the magic word. The companies are not related, they do not share anything. Only the user(s) are the same. They can make use of the same modules and the same localisation.

The reason I want to do this is saving costs for OPW and easier communication via OpenERP for the users.

I also would like to know multi-company technical basic architecture, how it is realized. This is to get more basic idea's about the issues that can arise and how to solve.


Yannick Vaucher - Camptocamp

--Yannick Vaucher - Camptocamp--

| 5 7 9
Lausanne, Switzerland
--Yannick Vaucher - Camptocamp--
Yannick Vaucher - Camptocamp
On 3/21/13, 1:51 PM

First of all I would advise to avoid having the same users on both companies.

A user will have one login per company. Otherwise, unless you develop some company switcher function, it will be hard to determine for which company a user is doing things. Like creating a Sale Order, what will be the company?

Also to be known:

What mainly separate access for users from one company to the other are the access rules. A domain filter like that on pretty much all objects: [('company_ids','child_of',[user.company_id.id])]

And a last thing, not all module have been deeply tested in multi-company mode. So prepare yourself to write some bug reports.

The users are in person the same. I can give person1 the username=person1company1 and a second username=person1company2. If I do so, there is no need for a switcher function. The technical solution that has been choosen looks smart. At this moment I only see problems can arise when a programmer somewhere has forgotten to add the filter. Maybe this can be troubleshooted by a one time scan for all the code that is available? If so the code can be bugfree on this point and this saves much people including developers a lot of time.

on 3/22/13, 4:03 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/21/13, 1:25 PM
Seen: 1841 times
Last updated: 3/16/15, 8:10 AM