Commit 64141666 authored by Romain Courteaud's avatar Romain Courteaud

Remove useless caching.

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