Commit 5e120a09 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: get active_process in a single script

parent 9f4af817
......@@ -17,6 +17,8 @@ if active_preference and preferred_cropped_canvas_data:
if not image_str:
if batch_mode:
if active_process_url:
return portal.restrictedTraverse(active_process_url)
return None
return context.Base_renderForm('Base_viewUploadDocumentFromCameraDialog',
......
......@@ -6,9 +6,6 @@ active_process = context.Base_storeDocumentFromCameraInActiveProcess(
batch_mode=True,
**kw)
if active_process is None and active_process_url:
active_process = portal.restrictedTraverse(active_process_url)
# Avoid to pass huge images to the activity
kw.pop("your_document_scanner_gadget", None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment