I've never used OpenERP and I'm interested in its multi-tenant capabilities.
As I understand it, OpenERP has three application tiers: the database, the application server, and the web server.
If I want to create a working configuration for multiple, independent companies, that however share the core business logic and modules - What would the typical setup look like?
From my research, it seems that a single application server can serve multiple databases.
I guess my initial question is, what part of OpenERP and its components is stored in the database, what part in the application server, and what part in the web server? For instance, where exactly is an uploaded document stored? For instance, if I serve multiple databases with one application server, is access to uploaded documents really restricted based on the database in use?
On top of that, if I use a single application server, can I also only use one web server / client to serve the different databases? There seems to be a dbfilter command that allows to map a hostname to a database. Would it be possible to forward requests with a proxy and is there a way for the web client to differentiate the individual tenants?
And when is it recommended to run multiple application servers instead of one?
Edit: I've just realized that starting with 6.1, OpenERP application server comes with an embedded WSGI server