Skip to content

Commit

Permalink
Merge PR #492 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by lmignon
  • Loading branch information
OCA-git-bot committed Jan 30, 2025
2 parents dbbfea0 + 00fdcc2 commit 1686cf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base_rest/components/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging

from werkzeug import Response
from werkzeug.exceptions import NotFound

from odoo.http import request
Expand Down Expand Up @@ -160,6 +161,8 @@ def dispatch(self, method_name, *args, params=None):
else:
res = method(*args, secure_params)
self._log_call(method, params, secure_params, res)
if isinstance(res, Response):
return res
return self._prepare_response(method, res)

def _validator_delete(self):
Expand Down

0 comments on commit 1686cf2

Please sign in to comment.