From e14e6ffc4d449983b9d5c3fca1803491431df28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 6 Oct 2006 08:59:17 +0000 Subject: [PATCH] add parameter to index with source or destination payment value git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10589 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../BankingOperationLine_index.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_index.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_index.xml index 223a13921d..8294609316 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_index.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_index.xml @@ -69,7 +69,10 @@ <item> <key> <string>_body</string> </key> <value> <string># Reindex the given line with a tag so it can be found in the message table.\n -line.reindexObject(tag=context.BankAccount_getMessageTag(line.getDestinationPaymentValue()))\n +if source:\n + line.reindexObject(tag=context.BankAccount_getMessageTag(line.getSourcePaymentValue()))\n +else:\n + line.reindexObject(tag=context.BankAccount_getMessageTag(line.getDestinationPaymentValue()))\n </string> </value> </item> <item> @@ -92,7 +95,7 @@ line.reindexObject(tag=context.BankAccount_getMessageTag(line.getDestinationPaym </item> <item> <key> <string>_params</string> </key> - <value> <string>line</string> </value> + <value> <string>line, source=0</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -112,15 +115,16 @@ line.reindexObject(tag=context.BankAccount_getMessageTag(line.getDestinationPaym <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>1</int> </value> + <value> <int>2</int> </value> </item> <item> <key> <string>co_varnames</string> </key> <value> <tuple> <string>line</string> + <string>source</string> <string>_getattr_</string> -<string>context</string> + <string>context</string> </tuple> </value> </item> @@ -132,7 +136,9 @@ line.reindexObject(tag=context.BankAccount_getMessageTag(line.getDestinationPaym <item> <key> <string>func_defaults</string> </key> <value> - <none/> + <tuple> + <int>0</int> + </tuple> </value> </item> <item> -- 2.30.9