changeset 0a5d5fdb385f in modules/timesheet:default
details: https://hg.tryton.org/modules/timesheet?cmd=changeset;node=0a5d5fdb385f
description:
Allow null origin for timesheet user application
issue10058
review331931002
diffstat:
routes.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 812f08e44e42 -r 0a5d5fdb385f routes.py
--- a/routes.py Fri Mar 05 15:49:20 2021 +0100
+++ b/routes.py Sun Mar 07 10:00:36 2021 +0100
@@ -7,8 +7,8 @@
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 @@
@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