Odoo Help

4

1
3 Answers
2
Avatar

Daniel Reis Portugal

--Daniel Reis--
3976
| 8 9 11
Linda-a-Velha, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt


Daniel Reis Portugal
10/29/13, 7:25 PM

I would recommend you the following setup:

  1. To secure each company's processes, a distinct system user for each.
  2. A single shared Postgres database server, with a distinct database role for each company. This way each company won't be able to see others databases. 3, A dedicated OpenERP copy for each company, accessible only by the corresponding system user. Each will run it's own server process on a distinct port (ex: 8070, 8071, 8072, etc.)
  3. An upfront webserver, such as Nginx or Apache, acting as a reverse proxy, in order to: provide SSL, map domain names like mycompany.myserver.tld into localhost:port, and could also provide a static data cache and load balancing.

Having distinct Postgres roles for each companies solves the dbfilter issue: each role doesn't even know the the other companies exist. And if you choose for a company to have only the Production database, the database dropdown won't even show, making it simpler for the end user.

At #3, you might think it's a little too much to keep an OpenERP per company, and that it can bring unnecessary extra work every time you want to apply product updates. But:

  • from a security perspective, it's easy to see that it's preferable for each company to have access to it's dedicated copy.
  • From a product maintenance perspective, it also ends up as a better choice: yes it will bring some extra work to update all instances, but you have a choice to do it gradually (and start with less complex companies), or to selectively apply fixes only in the instances that really need it.

By now running three independent server processes is unavoidable, since each one needs to run under a different system user and database role. And that's a good thing: if for some reason one company's process is killed, there's a good chance the others will be unaffected.

1
UserBUG Switzerland
1/16/19, 6:17 AM

With more than 5 years having passed since this question was raised and also with reference to this discussion (https://www.odoo.com/forum/help-1/question/odoo-as-a-service-in-the-cloud-98059), I also would like to know: With the changes in the recent releases, would you recommend a different approach to multi-tenancy in 2019? What would you do differently - with the database, the application server, the web server?

I'm very much looking forward to your input!

0
Sonia Tunisia
2/22/16, 9:03 AM

Do you really find a better solution to this problematic?

this is so, can you share it, please.

Ask a Question
Keep Informed
3 follower(s)
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.

Register
Odoo Training Center

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

Test it now