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 @@ ...@@ -68,7 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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> </string> </value>
</item> </item>
<item> <item>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<string>brain</string> <string>brain</string>
<string>selection</string> <string>selection</string>
<string>kwd</string> <string>kwd</string>
<string>min</string> <string>max</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
......
129 130
\ 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