diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index d62a5236cb5..75e061c7727 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2331,7 +2331,8 @@ class AccountMove(models.Model): def post(self): warnings.warn( "RedirectWarning method 'post()' is a deprecated alias to 'action_post()' or _post()", - DeprecationWarning + DeprecationWarning, + stacklevel=2 ) return self.action_post()