From febb4c22f38397e96e03e3f861aae22707a2eef4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com>
Date: Mon, 16 Aug 2010 09:28:55 +0000
Subject: [PATCH] Bank account currency must match with accounting cancellation
 resource.

    Make the relation string take into account the accounting cancellation resource
    so that the selected bank account match with it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37834 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../my_source_payment_reference.xml                             | 2 +-
 bt5/erp5_banking_core/bt/revision                               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_source_payment_reference.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_source_payment_reference.xml
index 96e16c2b2a..3fde384ec9 100644
--- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_source_payment_reference.xml
+++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_source_payment_reference.xml
@@ -537,7 +537,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: [(\'site_uid\',here.Baobab_getUserSiteUid()), (\'validation_state\', \'valid\')]</string> </value>
+            <value> <string>python: [(\'site_uid\',here.Baobab_getUserSiteUid()), (\'validation_state\', \'valid\'), (\'price_currency_uid\', here.getParentValue().getResourceUid())]</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision
index 135b797b48..849baeed65 100644
--- a/bt5/erp5_banking_core/bt/revision
+++ b/bt5/erp5_banking_core/bt/revision
@@ -1 +1 @@
-542
+543
-- 
2.30.9