Commit cda58b9a 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 b0755aab
...@@ -29,7 +29,11 @@ ...@@ -29,7 +29,11 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <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>
<item> <item>
<key> <string>guard_group</string> </key> <key> <string>guard_group</string> </key>
...@@ -40,9 +44,7 @@ ...@@ -40,9 +44,7 @@
<item> <item>
<key> <string>guard_permission</string> </key> <key> <string>guard_permission</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Modify portal content</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -67,7 +69,7 @@ ...@@ -67,7 +69,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Convergent</string> </value> <value> <string>Converge</string> </value>
</item> </item>
<item> <item>
<key> <string>trigger_type</string> </key> <key> <string>trigger_type</string> </key>
......
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Will begin the building</string> </value> <value> <string>Will begin the building</string> </value>
</item> </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> <item>
<key> <string>guard_group</string> </key> <key> <string>guard_group</string> </key>
<value> <value>
...@@ -40,9 +44,7 @@ ...@@ -40,9 +44,7 @@
<item> <item>
<key> <string>guard_permission</string> </key> <key> <string>guard_permission</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Modify portal content</string>
</tuple>
</value> </value>
</item> </item>
<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