Skip to content

Instantly share code, notes, and snippets.

@florentx
Last active December 28, 2015 10:09
Show Gist options
  • Save florentx/7484665 to your computer and use it in GitHub Desktop.
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)
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();
}
});
}
};
<?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