Commit 582ca278 authored by Jérome Perrin's avatar Jérome Perrin

simulation: Allow users with Associate role to converge and start_building of deliveries

With this, we accept users with permission to Modify portal content or Associate role

🚧 also fix transition text
parent dade4437
......@@ -29,7 +29,11 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string>This state is shown when the goods that are shipped equal the previsions</string> </value>
<value> <string>This state is for when the delivery is consistent with the prevision.</string> </value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: user.has_permission("Modify portal content", here) or user.has_role(("Associate",), here)</string> </value>
</item>
<item>
<key> <string>guard_group</string> </key>
......@@ -40,9 +44,7 @@
<item>
<key> <string>guard_permission</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -67,7 +69,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Convergent</string> </value>
<value> <string>Converge</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
......@@ -31,6 +31,10 @@
<key> <string>description</string> </key>
<value> <string>Will begin the building</string> </value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: user.has_permission("Modify portal content", here) or user.has_role(("Associate",), here)</string> </value>
</item>
<item>
<key> <string>guard_group</string> </key>
<value>
......@@ -40,9 +44,7 @@
<item>
<key> <string>guard_permission</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
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