Skip to content

Commit

Permalink
Use ENV variable for Odoo sign out custom URL
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed May 16, 2024
1 parent 148817f commit 0838c29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ def destroy
end

def after_sign_out_path_for(resource)
if @user.odoo_identity?
"https://oficinavirtual.somconnexio.coop"
url = ENV.fetch("ODOO_SIGN_OUT_URL", nil)
if @user.odoo_identity? && url
url
else
original_after_sign_out_path_for(resource)
end
Expand Down

0 comments on commit 0838c29

Please sign in to comment.