Commit 03f45765 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

erp5_document_scanner: simplify code.

parent f7336671
Pipeline #9283 failed with stage
in 0 seconds
...@@ -18,11 +18,6 @@ doc = context.Base_contribute(file=file_object, ...@@ -18,11 +18,6 @@ doc = context.Base_contribute(file=file_object,
**kw) **kw)
if publication_state == "shared": if publication_state == "shared":
action_list = ["share",] doc.share()
elif publication_state == "released": elif publication_state == "released":
action_list = ["share", "release"] doc.release()
else:
action_list = []
for action in action_list:
getattr(doc, action)()
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