Commit 4657d8f2 authored by Jérome Perrin's avatar Jérome Perrin

check that document is not None instead of just checking its boolean value

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28269 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 33309dfb
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>specialise = context.getSpecialiseValue(portal_type=(\'Purchase Trade Condition\',\'Sale Trade Condition\'))\n <value> <string>specialise = context.getSpecialiseValue(portal_type=(\'Purchase Trade Condition\',\'Sale Trade Condition\'))\n
\n \n
if specialise:\n if specialise is not None:\n
return specialise.getAggregatedAmountList(context)\n return specialise.getAggregatedAmountList(context)\n
\n \n
return []\n return []\n
...@@ -100,6 +100,7 @@ return []\n ...@@ -100,6 +100,7 @@ return []\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>specialise</string> <string>specialise</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
708 709
\ 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