forked from Techsystech/web
[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 comments9.0
parent
f3726f8fa9
commit
ef47b57963
|
@ -1,14 +1,13 @@
|
||||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
.. 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
|
Hide link to database manager in login screen
|
||||||
=============================================
|
=============================================
|
||||||
|
|
||||||
This module hides the "Manage Databases" link at the bottom of 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
|
Installation
|
||||||
============
|
============
|
||||||
|
@ -16,22 +15,43 @@ Installation
|
||||||
To install this module, you need to:
|
To install this module, you need to:
|
||||||
|
|
||||||
* Go to Settings / Local Modules
|
* 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
|
* 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
|
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
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
|
Bugs are tracked on `GitHub Issues
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
<https://github.com/OCA/OCA/issues>`_. In case of trouble, please
|
||||||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
|
check there if your issue has already been reported. If you spotted it first,
|
||||||
`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**>`_.
|
help us smashing it by providing a detailed and welcomed feedback.
|
||||||
|
|
||||||
|
|
||||||
Credits
|
Credits
|
||||||
|
@ -45,12 +65,14 @@ Contributors
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
|
||||||
.. image:: http://odoo-community.org/logo.png
|
.. image:: https://odoo-community.org/logo.png
|
||||||
:alt: Odoo Community Association
|
:alt: Odoo Community Association
|
||||||
:target: http://odoo-community.org
|
:target: https://odoo-community.org
|
||||||
|
|
||||||
This module is maintained by the OCA.
|
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.
|
||||||
|
|
|
@ -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).
|
|
@ -1,30 +1,11 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
##############################################################################
|
# Copyright Anubía, soluciones en la nube,SL (http://www.anubia.es)
|
||||||
#
|
|
||||||
# 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>
|
# Alejandro Santana <alejandrosantana@anubia.es>
|
||||||
#
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
# 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
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Hide link to database manager in login screen',
|
'name': 'Hide link to database manager in login screen',
|
||||||
'version': "8.0.1.0.0",
|
'version': "9.0.1.0.0",
|
||||||
'category': 'Web',
|
'category': 'Web',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': 'Alejandro Santana, Odoo Community Association (OCA)',
|
'author': 'Alejandro Santana, Odoo Community Association (OCA)',
|
||||||
|
@ -32,5 +13,5 @@
|
||||||
'summary': 'Hide link to database manager in login screen',
|
'summary': 'Hide link to database manager in login screen',
|
||||||
'depends': ['web'],
|
'depends': ['web'],
|
||||||
'data': ['views/webclient_templates.xml'],
|
'data': ['views/webclient_templates.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 25 KiB |
|
@ -1,13 +1,11 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright Anubía, soluciones en la nube,SL (http://www.anubia.es)
|
||||||
<openerp>
|
Alejandro Santana <alejandrosantana@anubia.es>
|
||||||
<data>
|
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">
|
<template id="login_layout_no_db" inherit_id="web.login_layout" name="Login Layout">
|
||||||
<xpath expr="//div[@class='oe_single_form_footer']" position="before">
|
<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"/>
|
<t t-set="disable_database_manager" t-value="1"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
</odoo>
|
||||||
</data>
|
|
||||||
</openerp>
|
|
||||||
|
|
Loading…
Reference in New Issue