option list_db=False hides db selection field

Bug #1268510 reported by Cedric Le Brouster(OpenFire) on 2014-01-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP R&D Web Team

Bug Description


In OpenERP v7 when the option list_db is set to False, the db list in selection page is changed to a text field.
Then, once a database name is entered, the field disappears, and won't appear unless you clean your browser's cache.
Moreover, editing the db name in the address bar of the browser doesn't work.

Expected : The database selection field should remain visible and editable.
This worked well on OpenERP 6.1

This problem occurs because a test is done on the db_list length, and the selection field is removed when there is only one database, which is the case when list_db is False and a database is selected.

tested with latest revision : openerp-web 4108


Here is a little patch.

I guess it's not very sexy, but it does the trick and I can't do much more with javascript.

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
status: New → Confirmed

patch update : for whatever reason the check made on db_list didn't work for the database selection on admin panel for Backup and Drop, which resulted on an empty selection list...

Sengottuvel(India) (sengottuvl) wrote :

Hi All,

Use the below parameter while starting openerp server for hide the database selection from login page.


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers