Skip to content
Snippets Groups Projects
Commit 7f6f6a54 authored by Valentin Chevalier's avatar Valentin Chevalier
Browse files

[FIX] payment,sale: fix access error when using the capture or void buttons


Before this commit, users may saw the capture and void buttons but
couldn't use them.

As capture or void actions need to access acquirer-related fields,
these actions are now sudoed to allow any users that see the button
to use it.

The access rules and rights are also checked before executing the action
to avoid abusive RPC calls.

task-2785144

closes odoo/odoo#91923

X-original-commit: 2e351d6ff9b7f72b486e83c827ff6e15a05c3331
Signed-off-by: default avatarValentin Chevalier <vcr@odoo.com>
Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
parent ccf8ca3c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment