Allow null origin for timesheet user application

issue10058
review331931002
This commit is contained in:
Cédric Krier committed 2021-03-07 10:00:36 +01:00
1 parent 09f517e9fc
commit c927f500b0
1 file changed
+3 -2
+3 -2
View File
@@ -7,8 +7,8 @@ from werkzeug.wrappers import Response
from trytond.transaction import Transaction
from trytond.wsgi import app
from trytond.protocols.wrappers import with_pool, with_transaction, \
user_application
from trytond.protocols.wrappers import (
with_pool, with_transaction, user_application, allow_null_origin)
timesheet_application = user_application('timesheet')
@@ -76,6 +76,7 @@ def timesheet_lines(request, pool, employee, date):
@app.route('/<database_name>/timesheet/line/<int:line>',
methods=['PUT', 'DELETE'])
@app.route('/<database_name>/timesheet/line', methods=['POST'])
@allow_null_origin
@with_pool
@with_transaction()
@timesheet_application