From d629e7d5e9c666d10bd298f0134aab62a358ab9d Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Wed, 7 Jan 2009 09:25:08 +0000
Subject: [PATCH] reset source_reference and destination_reference after clone
 on Invoices

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25025 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_invoicing/Invoice_afterClone.xml          | 2 ++
 bt5/erp5_invoicing/bt/revision                                  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_afterClone.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_afterClone.xml
index 2fb3047ce9..7e2b7a0018 100644
--- a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_afterClone.xml
+++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_afterClone.xml
@@ -55,7 +55,9 @@
             <key> <string>_body</string> </key>
             <value> <string>"""Reset references on copied transactions.\n
 """\n
+context.setSourceReference(None)\n
 context.setReference(None)\n
+context.setDestinationReference(None)\n
 </string> </value>
         </item>
         <item>
diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision
index 83981c0e3a..a6b4ce8401 100644
--- a/bt5/erp5_invoicing/bt/revision
+++ b/bt5/erp5_invoicing/bt/revision
@@ -1 +1 @@
-175
\ No newline at end of file
+176
\ No newline at end of file
-- 
2.30.9