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