Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
7 Ответы
34799 Представления

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.

Аватар
Отменить
Автор

i make comments on that line in all files

Лучший ответ

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.

Аватар
Отменить
Лучший ответ

did you added your web in your depence ? 

please share your code it will be easy to rely . 

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
мар. 25
1427
0
янв. 25
3512
1
авг. 23
14873
change password Решено
1
авг. 23
13526
1
июл. 23
10502