Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
7 Antworten
34638 Ansichten

I am install OpenERP (Odoo)in system, I want to remove links for

1. "Login with OpenERP"
2. "Manage Databses"
3. "Powered by OpenERP",

those appear on login page of OpenERP
I am using OpenERp Odoo(V8)Saas-4
I try to make change in "base.xml","webclient_templates.xml" and "database_selector.html" but still make no effect.

Avatar
Verwerfen
Autor

i make comments on that line in all files

Beste Antwort

You have to create a new module with a view to inherit from `web.login_layout` template from `web/views/webclient_templates.xml`. So

  • Create a new module `mytheme`:
  • `__init__.py`: Empty, because we do not need to import any module
  • `__openerp__.py`:

{
    'name': 'My Theme', 
    'version': '0.1', 
    'depends': ['web'], 
    'external_dependencies': {},
    'data': ['webclient_templates.xml'],
    
'js': ['static/src/js/mytheme.js'],
    'css': ['static/src/css/mytheme.css'], 
    'installable': True,
    'auto_install':False,
    'active':True,
}

  •  `views/webclient_templates.xml`:

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <template id="assets_backend" name="mytheme assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/mytheme/static/src/css/mytheme.css"/>
                <script type="text/javascript" src="/mytheme/static/src/js/mytheme.js"></script>
            </xpath>
        </template>
        <template id="mytheme.login_layout" inherit_id="web.login_layout" name="My Theme Login">
            <xpath expr="//div[@class='oe_single_form_footer']" position="replace">
                <div class="oe_single_form_footer">Here you can write your login footer</div>
            </xpath>
            <xpath expr="//div[@class='oe_single_form_logo']" position="replace">
                <div class="oe_single_form_logo">
                    <img src="/mytheme/static/src/img/logo.png"
                         alt="My Theme Logo"
                         title="My Theme Logo" />
                </div>
            </xpath>
        </template>
    </data>
</openerp>

  • Create CSS and JS files:
    • static/src/css/mytheme.css
    • static/src/js/mytheme.js
  • Copy your logo (180x90 px is a good one):
    • static/src/img/logo.png

Install module in Settings > Modules > Local Modules. This will override login template, you can inherit from any other template and add or replace any html using an xpath expresion.

Avatar
Verwerfen
Beste Antwort

did you added your web in your depence ? 

please share your code it will be easy to rely . 

Avatar
Verwerfen
Beste Antwort

Hi,

first you must manage Odoo server; if you are using Odoo Saas you cannot do it.

1.Remove login with OpenERP

if you mean announce bar, you can install web_adblock

if you mean link in user preference menu (on right top of screen) it is more compliecated and you have to write python code, not easy to explain here.

2.Manager database

In you server, you can update openerp-server.conf.  Here the meaning OpenERP/Parametri Configurazione

3.Why remove Powered by OpenERP ?

Legally and ethically you should hold OpenERP name

 

Antonio Maria Vigliotti

Avatar
Verwerfen
Beste Antwort

I don't know what you mean by 'Login with OpenERP'.

For the rest see https://www.odoo.com/forum/Help-1/question/How-to-hide-database-list-45049#answer-45198

You can remove the link 'Powered by OpenERP' in the linked answer.

Regards.

Avatar
Verwerfen
Beste Antwort

This app - https://apps.odoo.com/apps/modules/8.0/colors_customization/ - not only allows removing Odoo branding stuff, but replace it with your own

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
März 25
1180
0
Jan. 25
3239
1
Aug. 23
14520
1
Aug. 23
13207
1
Juli 23
10216