Last active
December 28, 2015 10:09
-
-
Save florentx/7484665 to your computer and use it in GitHub Desktop.
Use "?managedb" in the URL to reach the "Manage Database" page (for OpenERP 6.1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openerp.web_myaddon = function(openerp) { | |
var hostname = window.location.hostname, | |
params = jQuery.param != undefined && jQuery.deparam(jQuery.param.querystring()) | |
if (!openerp.web_myaddon) { | |
/** @namespace */ | |
openerp.web_myaddon = {}; | |
} | |
if (params.managedb != undefined) { | |
openerp.web.Login = openerp.web.Login.extend({ | |
start: function() { | |
this._super.apply(this, arguments); | |
this.database.show(); | |
} | |
}); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<templates id="template" xml:space="preserve"> | |
<!-- Login page without ManageDB --> | |
<t t-extend="Login"> | |
<t t-jquery="div.footer" t-operation="replace"> | |
<div class="footer">Powered by <span class="openerp">OpenERP</span></div> | |
</t> | |
</t> | |
</templates> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment