Skip to content
Browse files

[FIX] payment: prevent ACL denial when unlinking onboarding wizard

Since wizards shall not be unlinked by anyone, but as we want to get rid
of this specific one immediately to get rid of eventual credentials,
do it with elevated privileges.

Before this commit, the behavior was an authorization error when trying
to applying the payment method, in a fresh invoicing configuration.

X-original-commit: c8ee9c7
  • Loading branch information
madprog committed Feb 13, 2020
1 parent 05e13f4 commit 67789622f5cd196ea6bff715f98e2e37ca0bf5ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/payment/wizards/
@@ -142,7 +142,7 @@ def add_payment_methods(self):
raise UserError(_("You have to set a journal for your payment acquirer %s." % (self.manual_name,)))

# delete wizard data immediately to get rid of residual credentials
# the user clicked `apply` and not cancel so we can assume this step is done.
return {'type': 'ir.actions.act_window_close'}

0 comments on commit 6778962

Please sign in to comment.
You can’t perform that action at this time.