在OpenERP的登录页面中,有针对数据库管理的链接,为了安全起见,一般都会通过修改原始的XML来实现隐藏的目的。但这样每次重新安装以后,都要重新修改,很不方便,所以我们可以通过建立一个新模块的方式来达到目的。

1.建立一个新的模块,如loginedit,建立文件夹: static/src/xml/data.xml

2.在新增的xml文件中增加如下代码:

<templates id="template" xml:space="preserve">
<t t-extend="Login" >
<t t-jquery=".oe_login" t-operation="replace">
Custom code for Login Page
</t>
</t>
</templates>

3.在模板的__openerp__.py文件中增加'qweb': ['static/src/xml/data.xml']内容

4.重新刷新登录页面