Commit 64141666 authored by Romain Courteaud's avatar Romain Courteaud

Remove useless caching.

git-svn-id: 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1ec694d3
......@@ -65,9 +65,7 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Cache import CachingMethod\n
if brain is not None:\n
<value> <string>if brain is not None:\n
transaction = brain.getObject()\n
transaction = context\n
......@@ -86,8 +84,7 @@ def getTotalPrice(transaction_path):\n
if node is not None and node.isMemberOf(\'account_type/asset/cash\'):\n
total_price -= mvt.getDestinationInventoriatedTotalAssetPrice() or 0\n
return total_price\n
getTotalPrice = CachingMethod(getTotalPrice, id=\'PaymentTransaction_getTotalPayablePrice\')\n
return getTotalPrice(transaction.getPath())\n
</string> </value>
......@@ -140,8 +137,6 @@ return getTotalPrice(transaction.getPath())\n
\ 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