refactor: Update sign document route type from json to jsonrpc.

This commit is contained in:
Suherdy Yacob 2026-01-21 09:37:51 +07:00
parent b7d0f8c555
commit ac772f8fe8
9 changed files with 23 additions and 1 deletions

22
.gitignore vendored Normal file
View File

@ -0,0 +1,22 @@
# Python
__pycache__/
*.py[cod]
*$py.class
# Odoo
*.log
.env
.venv/
venv/
*.pot
*.po~
# VSCode
.vscode/
# PyCharm
.idea/
# OS
.DS_Store
Thumbs.db

Binary file not shown.

View File

@ -93,7 +93,7 @@ class SignController(Sign):
except Exception:
return request.not_found()
@http.route(['/sign/sign/<int:request_id>/<token>'], type='json', auth='public')
@http.route(['/sign/sign/<int:request_id>/<token>'], type='jsonrpc', auth='public')
def sign_document(self, request_id, token, signature=None, items=None, **kwargs):
# Intercept items to prevent saving the URL as value
if items: