Commit 4a3c1515 authored by Łukasz Nowak's avatar Łukasz Nowak

Relax condition on temporary documents.

parent 607e75ae
......@@ -50,13 +50,17 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>rule = context.getParentValue().getSpecialiseValue()\n
<value> <string>if context.isTempDocument():\n
# no way to check deeper temporary movements\n
return True\n
\n
rule = context.getParentValue().getSpecialiseValue()\n
if rule is not None:\n
if rule.getPortalType() not in expected_rule_portal_type_list:\n
if rule.getPortalType() in expected_rule_portal_type_list:\n
# for sure does not apply\n
return False\n
# rule is None, so maybe temporary movement, might apply\n
return True\n
return True\n
\n
return False\n
</string> </value>
</item>
<item>
......
353
\ No newline at end of file
354
\ 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