Odoo Help

0

Prevent default redirection to login page

By
marwa
on 1/3/18, 4:13 AM 225 views

Hello,


How i can  prevent odoo default redirection to login page after choosing a database.

I need to redirect to home page .


Best regards

0
pratima mohanty
On 1/3/18, 8:23 AM

Hi Marwa,

May this blog can help you out: https://www.targetintegration.com/technical/change-users-first-page-login-odoo-community

You can change the sequence no. of the menu item to and bring it to the very first page.

Thanks!

This is about the page after login right .... i think the question is not about this, if th question is this means , we can use home action in users page right :)

Niyas Raphy
on 1/4/18, 1:51 AM
0
--Niyas Raphy--

Odoo Techno Functionalist @ Cybrosys Techno Solutions

Graduation : B-Tech in Computer Science & Engineering from Calicut University (2012 - 2016)


Feel free to contact :  niyasraphyk@gmail.com

Niyas Raphy
On 1/3/18, 4:47 AM

Hi,

What you can do for this that, navigate  to this path :- odoo-11.0/addons/web/views/database_manager.html

Then,

<div class="list-group">
{% for db in databases %}
<a href="/web?db={{ db }}" class="list-group-item" >
{% if db in incompatible_databases %}
<i class="icon fa fa-warning pull-right text-warning" title="This database may not be compatible"></i>
{% endif %}
{{ db }}
{% if manage %}
<div class="text-right pull-right">
<span data-db="{{ db }}" data-target=".o_database_backup" class="o_database_action btn-link"><i class="fa fa-floppy-o fa-fw"></i> Backup</span>
<span data-db="{{ db }}" data-target=".o_database_duplicate" class="o_database_action btn-link"><i class="fa fa-files-o fa-fw"></i> Duplicate</span>
<span data-db="{{ db }}" data-target=".o_database_delete" class="o_database_action btn-link"><i class="fa fa-trash-o fa-fw"></i> Delete</span>
</div>
{% endif %}
</a>
{% endfor %}
</div>

You will find a div like the above.

Then for redirecting to the home page rather than login page , change one of the above line like this,

<div class="list-group">
{% for db in databases %}
<a href="/?db={{ db }}" class="list-group-item" >
{% if db in incompatible_databases %}
<i class="icon fa fa-warning pull-right text-warning" title="This database may not be compatible"></i>
{% endif %}
{{ db }}
{% if manage %}
<div class="text-right pull-right">
<span data-db="{{ db }}" data-target=".o_database_backup" class="o_database_action btn-link"><i class="fa fa-floppy-o fa-fw"></i> Backup</span>
<span data-db="{{ db }}" data-target=".o_database_duplicate" class="o_database_action btn-link"><i class="fa fa-files-o fa-fw"></i> Duplicate</span>
<span data-db="{{ db }}" data-target=".o_database_delete" class="o_database_action btn-link"><i class="fa fa-trash-o fa-fw"></i> Delete</span>
</div>
{% endif %}
</a>
{% endfor %}
</div>

In the <a href="/web?db={{ db }}" , remove web?db={{ db }} and give  like this <a href="/?db={{ db }}" class="list-group-item" >.

If you have more than one db, there will be some issues

Thanks

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 1/3/18, 4:13 AM
Seen: 225 times
Last updated: 1/3/18, 8:23 AM