Skip to content
Snippets Groups Projects
Commit 60366ba8 authored by momegahed's avatar momegahed
Browse files

[FIX] payment: user is able to delete linked journals


Steps to reproduce:

1- install any payment acquirer (e.g. stripe)
2- configure the payment acquirer and link it to a journal
3- try to delete the journal
4- the journal can be deleted which will create an internal server
error when this payment acquirer is used

Bug:

There is no restriction on deleting `account.journal` linked to
payment acquirers

Fix:

add a restriction that forces the user to remove the journal from the
payment acquirers first

OPW-3089006

closes odoo/odoo#107842

Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent ccac6fce
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment