Browse Source

[9.0] web_hide_db_manager link - Port to v9 (#411)

* [PRT][REN] Added module web_hide_db_manager_link, as a port to v8 of web_nocreatedb, but with a more descriptive name.

* [IMP] web_hide_db_manager_link: Improve README file.

* [IMP] web_hide_db_manager_link: Improve README file as reviewed.

* [UPD] web_hide_db_manager_link: Removed useless README line, as it explains a standard procedure for updating modules.

* Add bug tracker link on README.rst

* [UPD] prefix versions with 8.0

* [FIX] fixes the disabling of the db manager

* [IMP] change screenshot to v9, README, and improve style as per OCA guidelines

* [FIX] improve README and XML style, as per reviewer's comments
pull/415/merge
Jordi Ballester Alomar 8 years ago
committed by Moises Lopez - https://www.vauxoo.com/
parent
commit
ef47b57963
  1. 50
      web_hide_db_manager_link/README.rst
  2. 4
      web_hide_db_manager_link/__init__.py
  3. 29
      web_hide_db_manager_link/__openerp__.py
  4. BIN
      web_hide_db_manager_link/static/src/img/screenshot.png
  5. 22
      web_hide_db_manager_link/views/webclient_templates.xml

50
web_hide_db_manager_link/README.rst

@ -1,14 +1,13 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
=============================================
Hide link to database manager in login screen
=============================================
This module hides the "Manage Databases" link at the bottom of login screen.
The image in *web_hide_db_manager_link/static/src/img/screen.png* shows the resulting loging screen.
.. image:: web_hide_db_manager_link/static/src/img/screenshot.png
Installation
============
@ -16,22 +15,43 @@ Installation
To install this module, you need to:
* Go to Settings / Local Modules
* Search by module name "Hide link to database manager in login screen" or by module technical name "*web_hide_db_manager_link*"
* Search by module name "Hide link to database manager in login screen" or
by module technical name "*web_hide_db_manager_link*"
* Click install button
Usage
=====
When this module is installed the link "Manage Databases" will be hidden in
the login screen.
The image in *web_hide_db_manager_link/static/src/img/screen.png* shows the
resulting loging screen.
.. image:: web_hide_db_manager_link/static/src/img/screenshot.png
In order to access to the database management, the administrator should use a
specific URL <myserver>/web/database/manager
.. image:: https://odoo-community.org/website/image/ir
.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/162/9.0
Known issues
============
As Odoo v8 templates only live in the database, this module must be installed in each database you want this to be in effect.
* As Odoo v8 templates only live in the database, this module must be
installed in each database you want this to be in effect.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/web/issues/new?body=module:%20web_hide_db_manager_link%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/OCA/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Credits
@ -45,12 +65,14 @@ Contributors
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.

4
web_hide_db_manager_link/__init__.py

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright Anubía, soluciones en la nube,SL (http://www.anubia.es)
# Alejandro Santana <alejandrosantana@anubia.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

29
web_hide_db_manager_link/__openerp__.py

@ -1,30 +1,11 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Odoo, Open Source Management Solution
#
# Copyright (c) All rights reserved:
# (c) 2015 Anubía, soluciones en la nube,SL (http://www.anubia.es)
# Alejandro Santana <alejandrosantana@anubia.es>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses
#
##############################################################################
# Copyright Anubía, soluciones en la nube,SL (http://www.anubia.es)
# Alejandro Santana <alejandrosantana@anubia.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Hide link to database manager in login screen',
'version': "8.0.1.0.0",
'version': "9.0.1.0.0",
'category': 'Web',
'license': 'AGPL-3',
'author': 'Alejandro Santana, Odoo Community Association (OCA)',
@ -32,5 +13,5 @@
'summary': 'Hide link to database manager in login screen',
'depends': ['web'],
'data': ['views/webclient_templates.xml'],
'installable': False,
'installable': True,
}

BIN
web_hide_db_manager_link/static/src/img/screenshot.png

Before

Width: 733  |  Height: 769  |  Size: 33 KiB

After

Width: 759  |  Height: 401  |  Size: 25 KiB

22
web_hide_db_manager_link/views/webclient_templates.xml

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="login_layout_no_db" inherit_id="web.login_layout" name="Login Layout">
<xpath expr="//div[@class='oe_single_form_footer']" position="before">
<t t-set="disable_database_manager" t-value="1"/>
</xpath>
</template>
</data>
</openerp>
<!-- Copyright Anubía, soluciones en la nube,SL (http://www.anubia.es)
Alejandro Santana <alejandrosantana@anubia.es>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<template id="login_layout_no_db" inherit_id="web.login_layout" name="Login Layout">
<xpath expr="//div[@class='col-md-6 col-md-offset-3 o_database_list']" position="before">
<t t-set="disable_database_manager" t-value="1"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save