option list_db=False hides db selection field

Bug #1268510 reported by Cedric Le Brouster(OpenFire)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Web Team

Bug Description

Hi,

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

Regards,

Revision history for this message
Cedric Le Brouster(OpenFire) (cedric-lebrouster) wrote :
Revision history for this message
Cedric Le Brouster(OpenFire) (cedric-lebrouster) wrote :

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
Revision history for this message
Cedric Le Brouster(OpenFire) (cedric-lebrouster) wrote :

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...

Revision history for this message
Sengottuvel(India) (sengottuvl) wrote :

Hi All,

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

--no-database-list

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.