Skip to content

Commit

Permalink
[FIX] auth_ldap: remove view ref from action
Browse files Browse the repository at this point in the history
Without this change, the action directs the user to always create a new LDAP server.

After the patch, the user is directed to the tree view of LDAP servers, as expected. There, he can create one if needed.

@Tecnativa TT23686

Apply suggestions from code review

Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com>
  • Loading branch information
Jairo Llopis and pedrobaeza committed Apr 29, 2020
1 parent 856875e commit e2838c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions addons/auth_ldap/migrations/11.0.1.0/post-migration.py
@@ -0,0 +1,10 @@
# Copyright 2020 Tecnativa - Jairo Llopis
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
# Let action direct to the tree view by default, as expected
env.ref('auth_ldap.action_ldap_installer').view_id = False

0 comments on commit e2838c5

Please sign in to comment.