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)