diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml
index e0910bedeba79a47ed09247932e3c526b57fe17f..4c540039d644e189a2cecc1508f709734ea00ff7 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml
@@ -98,6 +98,10 @@ related_payment = portal.accounting_module.newContent(\n
                                               \'utf8\', \'repr\')))),\n
   source_section=context.getSourceSection(),\n
   destination_section=context.getDestinationSection(),\n
+  source_project=context.getSourceProject(),\n
+  destination_project=context.getDestinationProject(),\n
+  source_function=context.getSourceFunction(),\n
+  destination_function=context.getDestinationFunction(),\n
   stop_date=date,\n
   start_date=date,\n
   resource=context.getResource(),\n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index b90f3750fe25b07f293ed4f29c46df647edaa9e6..208e76adef9130416e9dbd5dcd130a9a7eece3a7 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-1164
\ No newline at end of file
+1165
\ No newline at end of file