Commit 870b855f authored by Jérome Perrin's avatar Jérome Perrin

this conditional was reverse


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25304 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aeff9d99
......@@ -133,7 +133,7 @@ class Delivery(XMLObject, ImmobilisationDelivery):
aggregate = self.Delivery_zGetTotal(**kw)[0]
result = aggregate.total_price or 0
method = self._getTypeBasedMethod('getTotalPrice')
if method is None:
if method is not None:
return method(result)
return result
......
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