Odoo Help

Welcome!

This community 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.

0

How to setup 2 companies in one database?

By
ton123
on 3/21/13, 1:25 PM 1,310 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.

0

Yannick Vaucher

--Yannick Vaucher--
1699
| 5 7 9
Lausanne, Switzerland
--Yannick Vaucher--
Yannick Vaucher
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.

ton123
on 3/22/13, 4:03 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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