Limiting the databases shown in the database's list on the web client

Asked by Kevin Beckford

How could one only show selected databases in the web client? For example to show

Dbone
Dbtwo

but not
Dbthree

Is this possible, and if so how would I do that?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Web Client Edit question
Assignee:
No assignee Edit question
Solved by:
Kevin Beckford
Solved:
Last query:
Last reply:
Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#1

Change the user_db to the database that you need "hide" to an user_id
diferent to the user_db what is runing your server.

If you want to reuse this db from other instance of server you will ned to
change this attribute to tables too! be care!.

For do that please refer Postgresql Documentation!

Regards

Revision history for this message
Kevin Beckford (chiggsy) said :
#2

There is no way from within openerp to do this?

Revision history for this message
Parthiv Patel (parthiv-patel-deactivatedaccount) said :
#3

Hi,

You can limit the list of visible databases in web client by configuring selected_dbs = [ ] in configuation file of web client.

Regards,
Parthiv.

Revision history for this message
Kevin Beckford (chiggsy) said :
#4

Ok that makes sense, I did see that option in the web client, but configure it in what way? Is it what it says, a simple list of databases I want to see? Or can I say which ones I do not want to see?

Revision history for this message
Kevin Beckford (chiggsy) said :
#5

Ok, I grepped my way through the code , found it in this file:

openerp_web-5.0.9-py2.5.egg/openerp/controllers/base.py

Line 56 has the invocation, seems I can specifiy a list of db's of my own to show, or get them via rpc from the server. I guess that'll have to do.