Reputation: 10189
I have received a compressed Odoo instance as a ZIP file. My purpose was to unzip it and make it work in my computer. I was able to do it with no problem.
Now, I have to make that instance work in another server, so I have moved the instance from my computer to the mentioned server.
The only difference (apparently) between both installations is that in the new server I am using virtualenv
to install all the Python3 packages and to run Odoo. In this new server, when I start Odoo, I see the message:
The database manager has been disabled by the administrator
And I have no chance to create a new database from the interface.
The same instance of Odoo, in my computer, shows the database manager to create a new database, as always.
Any ideas? Could be the virtualenv
the problem?
Upvotes: 3
Views: 6324
Reputation: 14751
When I searched Using IDE for this sentence I found it in this file \web\views\database_manager.html
There is a condition to show this sentence it's:
{% if not list_db %}
<div class="alert alert-danger text-center">
The database manager has been disabled by the administrator
</div>
It's shown when this list_db
variable have falsy value. now this variable is passed to this template (html page)
by this method:
def _render_template(self, **d):
d.setdefault('manage',True)
d['insecure'] = odoo.tools.config.verify_admin_password('admin')
d['list_db'] = odoo.tools.config['list_db']
.....
.....
return env.get_template("database_manager.html").render(d)
This means that this value is retrieved from configuration file, So make sure that this value is set to True
in the configuration file:
[options]
addons_path = .....
admin_passwd = ....
....
....
list_db = True
Didn't know about this option until know, Very good question as always @forvas.
Upvotes: 4