From 8e38ceb13e3817ba9858894b5badc3619e9b76c4 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 17 Jan 2026 09:47:06 +0100 Subject: [PATCH] 17.01.26 --- modules/purchase_trade/fee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index ea66da6..bc7e87a 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -376,7 +376,7 @@ class Fee(ModelSQL,ModelView): Warning = Pool().get('res.user.warning') warning_name = Warning.format("Lot ever received", []) if Warning.check(warning_name): - raise Warning(warning_name, + raise UserWarning(warning_name, "By clicking yes, an accrual for this fee will be created") AccountMove = Pool().get('account.move') account_move = move._get_account_stock_move_fee(record.id)