Hi
It is an issue we encountered to manage a common data repository.
The solution is to use combined techniques to make believe Odoo works on separate databases:
- A login redirection via pgbouncer: when Odoo wants to connect on a specific database, it redirects to a common database containing all schemas, with a specific user
- A search_path set according to a user: the specific user log to the unique base and has in his search_path a priority: the schema database
- Create views pg_catalog pointing to the catalog in order to restrict the visibility: the views are created in the schema to restrict the view to the pattern pg_catalog
Be Aware, this is a trick to bypass the standard operating Odoo. This works, but must be fully qualified
Regards,