Commit 8e4ccb50 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Set context as follow up

parent c7a2f0e7
......@@ -21,6 +21,7 @@ extra_document_kw = {
context.Base_contribute(file=file_object,
batch_mode=True,
follow_up_list=[context.getRelativeUrl(),],
extra_document_kw=extra_document_kw,
**kw)
......
......@@ -4,7 +4,7 @@ translateString = portal.Base_translateString
# Avoid to pass huge images to the activity
kw.pop("your_document_scanner_gadget", None)
portal.portal_activities.activate().Base_uploadDocumentFromCamera(
context.activate().Base_uploadDocumentFromCamera(
active_process_url=active_process_url, **kw)
return context.Base_redirect('view',
......
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