Commit 46418b9b authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Simplify code

parent 59eafa65
......@@ -17,8 +17,6 @@ doc = context.Base_contribute(file=file_object,
follow_up_list=[context.getRelativeUrl(),],
**kw)
publication_state = kw.get("field_your_publication_state")
if publication_state == "shared":
action_list = ["share",]
elif publication_state == "released":
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>active_process_url=None, **kw</string> </value>
<value> <string>publication_state, active_process_url=None, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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