Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
7 Odpovědi
34780 Zobrazení

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
Zrušit
Autor

i make comments on that line in all files

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

did you added your web in your depence ? 

please share your code it will be easy to rely . 

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 25
1420
0
led 25
3498
1
srp 23
14866
1
srp 23
13511
1
čvc 23
10490