Commit 89a880a1 authored by Jérome Perrin's avatar Jérome Perrin

support cases when brain.total_price is None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11344 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5e9d632
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return -min(brain.total_price, 0)\n
<value> <string>return max(-(brain.total_price or 0), 0)\n
</string> </value>
</item>
<item>
......@@ -120,7 +120,7 @@
<string>brain</string>
<string>selection</string>
<string>kwd</string>
<string>min</string>
<string>max</string>
<string>_getattr_</string>
</tuple>
</value>
......
129
\ No newline at end of file
130
\ 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