From c2849d3a87bb8e1913150f87a79bc572d0bc6342 Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 28 Aug 2008 11:12:37 +0000
Subject: [PATCH] Don't convert Message object to string. This is used when
 user see workflow history.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23221 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../PaymentTransaction_copyInvoiceProperties.xml               | 3 ++-
 bt5/erp5_accounting/bt/revision                                | 2 +-
 .../InvoiceTransaction_postGenerationActivity.xml              | 3 ++-
 bt5/erp5_invoicing/bt/revision                                 | 2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml
index 4dbb3f50f5..96c17bd03a 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml
@@ -67,7 +67,8 @@
             <key> <string>_body</string> </key>
             <value> <string>from Products.ERP5Type.Message import Message\n
 \n
-N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n
+# Return Message object, so that this message will be translated when it is rendered later.\n
+N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
 \n
 payment_transaction = context\n
 \n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 8c28da60d7..5cd7ca2206 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-747
\ No newline at end of file
+748
\ No newline at end of file
diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml
index b534ace448..5c493dfae1 100644
--- a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml
+++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml
@@ -80,7 +80,8 @@ except ImportError:\n
   class WorkflowException(Exception):\n
     pass\n
 \n
-N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n
+# Return Message object, so that this message will be translated when it is rendered later.\n
+N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
 \n
 invoice = context\n
 \n
diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision
index 3fdc173dab..d800886d9c 100644
--- a/bt5/erp5_invoicing/bt/revision
+++ b/bt5/erp5_invoicing/bt/revision
@@ -1 +1 @@
-122
\ No newline at end of file
+123
\ No newline at end of file
-- 
2.30.9