Browse Source
[PRT][REN] Added module web_hide_db_manager_link, as a port to v8 of web_nocreatedb, but with a more descriptive name.
pull/92/head
[PRT][REN] Added module web_hide_db_manager_link, as a port to v8 of web_nocreatedb, but with a more descriptive name.
pull/92/head
Alejandro Santana
10 years ago
10 changed files with 227 additions and 83 deletions
-
67__unported__/web_nocreatedb/__openerp__.py
-
BIN__unported__/web_nocreatedb/static/src/img/screen.png
-
16__unported__/web_nocreatedb/static/src/xml/web_nocreatedb.xml
-
50web_hide_db_manager_link/README.rst
-
0web_hide_db_manager_link/__init__.py
-
36web_hide_db_manager_link/__openerp__.py
-
BINweb_hide_db_manager_link/static/description/icon.png
-
128web_hide_db_manager_link/static/description/icon.svg
-
BINweb_hide_db_manager_link/static/src/img/screenshot.png
-
13web_hide_db_manager_link/views/webclient_templates.xml
@ -1,67 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################## |
|
||||
# Financed and Planified by Vauxoo |
|
||||
# developed by: tulio@vauxoo.com |
|
||||
# |
|
||||
|
|
||||
# This program is free software: you can redistribute it and/or modify |
|
||||
# it under the terms of the GNU 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 General Public License for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU General Public License |
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################## |
|
||||
|
|
||||
{ |
|
||||
'name': "NO create database link", |
|
||||
'author': "Vauxoo,Odoo Community Association (OCA)", |
|
||||
'category': "Web", |
|
||||
'website': "http://vauxoo.com", |
|
||||
'description': """ |
|
||||
After install this module, you will not see anymore the |
|
||||
"Manage Databases" link in login screen. |
|
||||
|
|
||||
See the image bellow: |
|
||||
|
|
||||
.. image:: web_nocreatedb/static/src/img/screen.png |
|
||||
|
|
||||
How to use: |
|
||||
|
|
||||
When you start your server add the name of this module in the "load" option:: |
|
||||
|
|
||||
$./openerp-server --load=web,web_nocreatedb -u all -d database |
|
||||
|
|
||||
Then you can start your server without the -u and -d (just the first time you |
|
||||
need update all to be sure all base and web will be fine). |
|
||||
|
|
||||
With this option you can just take off and restart the server if you need to show |
|
||||
the link temporaly again. |
|
||||
|
|
||||
TODO: It should be great add a parameter in the database to hide it configurable |
|
||||
way and with web_preload: True, but BTW, in old versions of openerp it was a |
|
||||
parameter in the config file, i think as it is is fine for now. |
|
||||
|
|
||||
.. note:: This module probably will not be shown in your module list by default |
|
||||
You should create a menu to see "All modules without filter. |
|
||||
""", |
|
||||
'version': "1.0", |
|
||||
'depends': [ |
|
||||
'web', |
|
||||
], |
|
||||
'js': [ |
|
||||
], |
|
||||
'css': [ |
|
||||
], |
|
||||
'qweb': [ |
|
||||
'static/src/xml/web_nocreatedb.xml', |
|
||||
], |
|
||||
'installable': False, |
|
||||
'auto_install': False, |
|
||||
} |
|
Before Width: 600 | Height: 302 | Size: 70 KiB |
@ -1,16 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<!-- |
|
||||
This program is free software: you can redistribute it and/or modify |
|
||||
it under the terms of the GNU General Public License as |
|
||||
published by the Free Software Foundation, either version 3 of the |
|
||||
License, or (at your option) any later version. |
|
||||
--> |
|
||||
<templates id="template" xml:space="preserve"> |
|
||||
<t t-extend="Login"> |
|
||||
<t t-jquery="div[class=oe_login_footer]" t-operation="replace"> |
|
||||
<div class="oe_login_footer"> |
|
||||
<a href="http://www.openerp.com" target="_blank">Powered by <span>OpenERP</span></a> |
|
||||
</div> |
|
||||
</t> |
|
||||
</t> |
|
||||
</templates> |
|
@ -0,0 +1,50 @@ |
|||||
|
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
||||
|
:alt: License |
||||
|
|
||||
|
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 |
||||
|
============ |
||||
|
|
||||
|
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*" |
||||
|
* Click install button |
||||
|
|
||||
|
In case this module is not shown in your module list by default, click on "Update Module List" and clear any filter to show all modules. |
||||
|
|
||||
|
Usage |
||||
|
===== |
||||
|
|
||||
|
To use this module, you need to: |
||||
|
|
||||
|
* As in Odoo v8 templates only live in the database, this module must be installed in each database you want this to be in effect. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Alejandro Santana <alejandrosantana@anubia.es> |
||||
|
|
||||
|
Maintainer |
||||
|
---------- |
||||
|
|
||||
|
.. image:: http://odoo-community.org/logo.png |
||||
|
:alt: Odoo Community Association |
||||
|
:target: http://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. |
||||
|
|
||||
|
To contribute to this module, please visit http://odoo-community.org. |
@ -0,0 +1,36 @@ |
|||||
|
# -*- 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 |
||||
|
# |
||||
|
############################################################################## |
||||
|
|
||||
|
{ |
||||
|
'name': 'Hide link to database manager in login screen', |
||||
|
'version': "1.0", |
||||
|
'category': 'Web', |
||||
|
'license': 'AGPL-3', |
||||
|
'author': 'Alejandro Santana, Odoo Community Association (OCA)', |
||||
|
'website': 'http://anubia.es', |
||||
|
'summary': 'Hide link to database manager in login screen', |
||||
|
'depends': ['web'], |
||||
|
'data': ['views/webclient_templates.xml'], |
||||
|
'installable': True, |
||||
|
} |
After Width: 256 | Height: 256 | Size: 25 KiB |
@ -0,0 +1,128 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
|
<svg |
||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/" |
||||
|
xmlns:cc="http://creativecommons.org/ns#" |
||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
||||
|
xmlns:svg="http://www.w3.org/2000/svg" |
||||
|
xmlns="http://www.w3.org/2000/svg" |
||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
||||
|
width="747.26123" |
||||
|
height="747.26123" |
||||
|
viewBox="0 0 597.80899 597.80897" |
||||
|
xml:space="preserve" |
||||
|
id="svg2" |
||||
|
version="1.1" |
||||
|
inkscape:version="0.48.4 r9939" |
||||
|
sodipodi:docname="logo.svg"><metadata |
||||
|
id="metadata34"><rdf:RDF><cc:Work |
||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type |
||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs |
||||
|
id="defs32" /><sodipodi:namedview |
||||
|
pagecolor="#ffffff" |
||||
|
bordercolor="#666666" |
||||
|
borderopacity="1" |
||||
|
objecttolerance="10" |
||||
|
gridtolerance="10" |
||||
|
guidetolerance="10" |
||||
|
inkscape:pageopacity="0" |
||||
|
inkscape:pageshadow="2" |
||||
|
inkscape:window-width="1920" |
||||
|
inkscape:window-height="1021" |
||||
|
id="namedview30" |
||||
|
showgrid="true" |
||||
|
inkscape:zoom="0.59949193" |
||||
|
inkscape:cx="616.22391" |
||||
|
inkscape:cy="373.12361" |
||||
|
inkscape:window-x="-2" |
||||
|
inkscape:window-y="-3" |
||||
|
inkscape:window-maximized="1" |
||||
|
inkscape:current-layer="svg2" |
||||
|
inkscape:snap-grids="true" |
||||
|
inkscape:snap-page="true" |
||||
|
inkscape:snap-center="true" |
||||
|
inkscape:snap-midpoints="true" |
||||
|
inkscape:object-nodes="true" |
||||
|
inkscape:object-paths="true" |
||||
|
inkscape:snap-bbox="true" |
||||
|
inkscape:bbox-paths="true" |
||||
|
inkscape:bbox-nodes="true" |
||||
|
inkscape:snap-bbox-edge-midpoints="true" |
||||
|
inkscape:snap-bbox-midpoints="true" |
||||
|
inkscape:snap-intersection-paths="true" |
||||
|
inkscape:snap-smooth-nodes="true" |
||||
|
inkscape:snap-object-midpoints="true" |
||||
|
fit-margin-top="0" |
||||
|
fit-margin-left="0" |
||||
|
fit-margin-right="0" |
||||
|
fit-margin-bottom="0"><inkscape:grid |
||||
|
type="xygrid" |
||||
|
id="grid3291" |
||||
|
empspacing="5" |
||||
|
visible="true" |
||||
|
enabled="true" |
||||
|
snapvisiblegridlinesonly="true" |
||||
|
originx="103.27124px" |
||||
|
originy="87.26121px" /></sodipodi:namedview><g |
||||
|
id="orginal" |
||||
|
style="fill-rule:nonzero;stroke:#000000;stroke-miterlimit:4" |
||||
|
transform="translate(82.616991,82.616992)" /><g |
||||
|
id="Layer_x0020_3" |
||||
|
style="fill:none;stroke:#ffffff;stroke-width:12.46510029;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4" |
||||
|
transform="translate(82.616991,82.616992)"><path |
||||
|
style="fill:#000000;stroke:#000000;stroke-width:37.39530182;stroke-linecap:butt;stroke-linejoin:miter" |
||||
|
d="m 323.205,324.227 c 2.833,-23.601 1.984,-27.062 19.563,-23.239 l 4.463,0.392 c 13.517,0.615 31.199,-2.174 41.587,-7 22.362,-10.376 35.622,-27.7 13.572,-23.148 -50.297,10.376 -53.755,-6.655 -53.755,-6.655 C 401.746,185.774 423.948,85.741 404.784,61.255 352.514,-5.534 262.036,26.049 260.522,26.869 l -0.482,0.089 c -9.938,-2.062 -21.06,-3.294 -33.554,-3.496 -22.761,-0.374 -40.032,5.967 -53.133,15.904 0,0 -161.408,-66.498 -153.899,83.628 1.597,31.936 45.777,241.655 98.47,178.31 19.259,-23.163 37.871,-42.748 37.871,-42.748 9.242,6.14 20.307,9.272 31.912,8.147 l 0.897,-0.765 c -0.281,2.876 -0.157,5.689 0.359,9.019 -13.572,15.167 -9.584,17.83 -36.723,23.416 -27.457,5.659 -11.326,15.734 -0.797,18.367 12.768,3.193 42.305,7.716 62.268,-20.224 l -0.795,3.188 c 5.325,4.26 4.965,30.619 5.72,49.452 0.756,18.834 2.017,36.409 5.856,46.771 3.839,10.36 8.369,37.05 44.036,29.406 29.809,-6.388 52.6,-15.582 54.677,-101.107" |
||||
|
id="path6" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
style="fill:#336791;stroke:none" |
||||
|
d="m 402.395,271.23 c -50.302,10.376 -53.76,-6.655 -53.76,-6.655 53.111,-78.808 75.313,-178.843 56.153,-203.326 -52.27,-66.785 -142.752,-35.2 -144.262,-34.38 l -0.486,0.087 c -9.938,-2.063 -21.06,-3.292 -33.56,-3.496 -22.761,-0.373 -40.026,5.967 -53.127,15.902 0,0 -161.411,-66.495 -153.904,83.63 1.597,31.938 45.776,241.657 98.471,178.312 19.26,-23.163 37.869,-42.748 37.869,-42.748 9.243,6.14 20.308,9.272 31.908,8.147 l 0.901,-0.765 c -0.28,2.876 -0.152,5.689 0.361,9.019 -13.575,15.167 -9.586,17.83 -36.723,23.416 -27.459,5.659 -11.328,15.734 -0.796,18.367 12.768,3.193 42.307,7.716 62.266,-20.224 l -0.796,3.188 c 5.319,4.26 9.054,27.711 8.428,48.969 -0.626,21.259 -1.044,35.854 3.147,47.254 4.191,11.4 8.368,37.05 44.042,29.406 29.809,-6.388 45.256,-22.942 47.405,-50.555 1.525,-19.631 4.976,-16.729 5.194,-34.28 l 2.768,-8.309 c 3.192,-26.611 0.507,-35.196 18.872,-31.203 l 4.463,0.392 c 13.517,0.615 31.208,-2.174 41.591,-7 22.358,-10.376 35.618,-27.7 13.573,-23.148 z" |
||||
|
id="path8" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
d="m 215.866,286.484 c -1.385,49.516 0.348,99.377 5.193,111.495 4.848,12.118 15.223,35.688 50.9,28.045 29.806,-6.39 40.651,-18.756 45.357,-46.051 3.466,-20.082 10.148,-75.854 11.005,-87.281" |
||||
|
id="path10" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
d="m 173.104,38.256 c 0,0 -161.521,-66.016 -154.012,84.109 1.597,31.938 45.779,241.664 98.473,178.316 19.256,-23.166 36.671,-41.335 36.671,-41.335" |
||||
|
id="path12" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
d="m 260.349,26.207 c -5.591,1.753 89.848,-34.889 144.087,34.417 19.159,24.484 -3.043,124.519 -56.153,203.329" |
||||
|
id="path14" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
style="stroke-linejoin:bevel" |
||||
|
d="m 348.282,263.953 c 0,0 3.461,17.036 53.764,6.653 22.04,-4.552 8.776,12.774 -13.577,23.155 -18.345,8.514 -59.474,10.696 -60.146,-1.069 -1.729,-30.355 21.647,-21.133 19.96,-28.739 -1.525,-6.85 -11.979,-13.573 -18.894,-30.338 -6.037,-14.633 -82.796,-126.849 21.287,-110.183 3.813,-0.789 -27.146,-99.002 -124.553,-100.599 -97.385,-1.597 -94.19,119.762 -94.19,119.762" |
||||
|
id="path16" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
d="m 188.604,274.334 c -13.577,15.166 -9.584,17.829 -36.723,23.417 -27.459,5.66 -11.326,15.733 -0.797,18.365 12.768,3.195 42.307,7.718 62.266,-20.229 6.078,-8.509 -0.036,-22.086 -8.385,-25.547 -4.034,-1.671 -9.428,-3.765 -16.361,3.994 z" |
||||
|
id="path18" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
d="m 187.715,274.069 c -1.368,-8.917 2.93,-19.528 7.536,-31.942 6.922,-18.626 22.893,-37.255 10.117,-96.339 -9.523,-44.029 -73.396,-9.163 -73.436,-3.193 -0.039,5.968 2.889,30.26 -1.067,58.548 -5.162,36.913 23.488,68.132 56.479,64.938" |
||||
|
id="path20" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
style="fill:#ffffff;stroke-width:4.15500021;stroke-linecap:butt;stroke-linejoin:miter" |
||||
|
d="m 172.517,141.7 c -0.288,2.039 3.733,7.48 8.976,8.207 5.234,0.73 9.714,-3.522 9.998,-5.559 0.284,-2.039 -3.732,-4.285 -8.977,-5.015 -5.237,-0.731 -9.719,0.333 -9.996,2.367 z" |
||||
|
id="path22" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
style="fill:#ffffff;stroke-width:2.0775001;stroke-linecap:butt;stroke-linejoin:miter" |
||||
|
d="m 331.941,137.543 c 0.284,2.039 -3.732,7.48 -8.976,8.207 -5.238,0.73 -9.718,-3.522 -10.005,-5.559 -0.277,-2.039 3.74,-4.285 8.979,-5.015 5.239,-0.73 9.718,0.333 10.002,2.368 z" |
||||
|
id="path24" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
d="m 350.676,123.432 c 0.863,15.994 -3.445,26.888 -3.988,43.914 -0.804,24.748 11.799,53.074 -7.191,81.435" |
||||
|
id="path26" |
||||
|
inkscape:connector-curvature="0" /><path |
||||
|
style="stroke-width:3" |
||||
|
d="M 0,60.232" |
||||
|
id="path28" |
||||
|
inkscape:connector-curvature="0" /></g><g |
||||
|
id="g3303" |
||||
|
transform="matrix(1.1483628,0,0,1.1483628,50.527964,50.527965)"><path |
||||
|
id="path3295" |
||||
|
transform="matrix(0.80000001,0,0,0.80000001,0,-5.9195504e-6)" |
||||
|
d="M 270.34375,-55 C 90.653337,-55 -55,90.653337 -55,270.34375 c 0,179.69041 145.653337,325.375 325.34375,325.375 179.69041,0 325.375,-145.68459 325.375,-325.375 C 595.71875,90.653337 450.03416,-55 270.34375,-55 z m 0,55 c 149.31475,0 270.375,121.029 270.375,270.34375 0,149.31475 -121.06025,270.375 -270.375,270.375 C 121.029,540.71875 0,419.6585 0,270.34375 0,121.029 121.029,0 270.34375,0 z" |
||||
|
style="fill:#ff0000;fill-opacity:1;stroke:none" |
||||
|
inkscape:connector-curvature="0" /><rect |
||||
|
transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)" |
||||
|
y="70.972221" |
||||
|
x="-22.249216" |
||||
|
height="469.80899" |
||||
|
width="44.498447" |
||||
|
id="rect3300" |
||||
|
style="fill:#ff0000;fill-opacity:1;stroke:none" /></g></svg> |
After Width: 733 | Height: 769 | Size: 33 KiB |
@ -0,0 +1,13 @@ |
|||||
|
<?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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue