Commit 61573056 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Add reference to Active Process

With this, we can search easily active processes used by document scanner and remove them
parent d3571fc7
<property_sheet_list>
<portal_type id="Active Process">
<item>Reference</item>
</portal_type>
</property_sheet_list>
\ No newline at end of file
...@@ -14,6 +14,7 @@ if active_process_url: ...@@ -14,6 +14,7 @@ if active_process_url:
active_process = portal.restrictedTraverse(active_process_url) active_process = portal.restrictedTraverse(active_process_url)
else: else:
active_process = portal.portal_activities.newActiveProcess() active_process = portal.portal_activities.newActiveProcess()
active_process.setReference("document_scanner_js")
if generate_new_uid: if generate_new_uid:
id_group = ('document_scanner_js', active_process.getUid()) id_group = ('document_scanner_js', active_process.getUid())
......
Active Process | Reference
\ No newline at end of file
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