Commit b462b3d7 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: remove the state published

Users can make mistakes and publish the document to everyone
parent 658058aa
......@@ -24,16 +24,12 @@ doc = context.Base_contribute(file=file_object,
follow_up_list=[context.getRelativeUrl(),],
**kw)
publication_section = kw.get("field_your_publication_state")
publication_state = kw.get("field_your_publication_state")
if publication_section == "shared":
if publication_state == "shared":
action_list = ["share",]
elif publication_section == "relased":
elif publication_state == "relased":
action_list = ["share", "release"]
elif publication_section == "relased":
action_list = ["share", "release"]
elif publication_section == "published":
action_list = ["share", "release", "publish"]
else:
action_list = []
......
......@@ -118,7 +118,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [("", ""), ("Draft", "draft"), ("Shared", "shared"), ("Released", "released"), ("Published", "published")]</string> </value>
<value> <string>python: [("", ""), ("Draft", "draft"), ("Shared", "shared"), ("Released", "released"),]</string> </value>
</item>
</dictionary>
</pickle>
......
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