From df790863510bc8246d749d81b8918203a1f57af3 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Mon, 14 Dec 2009 16:12:28 +0000
Subject: [PATCH] allow to copy a list of destination in the simulation. This
 not nice solution, but this code will change deeply once simulation API is
 finished

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31288 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/InvoicingRule.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5/Document/InvoicingRule.py b/product/ERP5/Document/InvoicingRule.py
index cafc0caf47..5eb556f569 100644
--- a/product/ERP5/Document/InvoicingRule.py
+++ b/product/ERP5/Document/InvoicingRule.py
@@ -81,6 +81,10 @@ class InvoicingRule(Rule):
         'source_function': context_movement.getSourceFunction(),
         'source_payment': context_movement.getSourcePayment(),
         'source_account': context_movement.getSourceAccount(),
+        # this is required in order to have list of destination in the simulation
+        # XXX all this section will probably be removed once the simulation API
+        # will be fully reviewed
+        'destination_list': context_movement.getDestinationList(),
         'destination': context_movement.getDestination(),
         'destination_section': context_movement.getDestinationSection(),
         'destination_decision': context_movement.getDestinationDecision(),
-- 
2.30.9