Commit 4dd4aa5f authored by Romain Courteaud's avatar Romain Courteaud 🐸

Trigger open order creation when the user's assignment is open.

This prevent creating open order when adding person with business template
parent f638259a
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<key> <string>before_commit_script_name</string> </key> <key> <string>before_commit_script_name</string> </key>
<value> <value>
<list> <list>
<string>Person_fixConsistency</string> <string>Assignment_fixPersonConsistency</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -50,13 +50,13 @@ ...@@ -50,13 +50,13 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Person_new</string> </value> <value> <string>Assignment_open</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>manage_afterAdd</string> <string>open</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <list>
<string>Person</string> <string>Assignment</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>person = state_change[\'object\']\n <value> <string>person = state_change[\'object\'].getParentValue()\n
person.fixConsistency()\n person.fixConsistency()\n
</string> </value> </string> </value>
</item> </item>
...@@ -68,7 +68,7 @@ person.fixConsistency()\n ...@@ -68,7 +68,7 @@ person.fixConsistency()\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Person_fixConsistency</string> </value> <value> <string>Assignment_fixPersonConsistency</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
537 538
\ No newline at end of file \ No newline at end of file
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