Commit c8c5e9db authored by Nicolas Delaby's avatar Nicolas Delaby

Test if getImmobilisationState exists

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e19246d
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<value> <string>movement_content = state_change[\'object\']\n <value> <string>movement_content = state_change[\'object\']\n
#movement_content.log(movement_content.getRelativeUrl())\n #movement_content.log(movement_content.getRelativeUrl())\n
movement = movement_content.getRootDeliveryValue()\n movement = movement_content.getRootDeliveryValue()\n
if movement.getImmobilisationState() != \'calculating\':\n if getattr(movement, \'getImmobilisationState\', None) is not None and movement.getImmobilisationState() != \'calculating\':\n
movement.calculateImmobilisationValidity()\n movement.calculateImmobilisationValidity()\n
</string> </value> </string> </value>
</item> </item>
...@@ -129,6 +129,8 @@ if movement.getImmobilisationState() != \'calculating\':\n ...@@ -129,6 +129,8 @@ if movement.getImmobilisationState() != \'calculating\':\n
<string>movement_content</string> <string>movement_content</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>movement</string> <string>movement</string>
<string>getattr</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
144 145
\ 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