From 02f0c32ffbe28c5db4c3cb102e76e927f3960470 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 21 Jun 2010 09:08:05 +0000
Subject: [PATCH] Same as r35044 (revert r32724 that is done by
 misunderstanding).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36471 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../DocumentTemplateItem/InvoiceSimulationRule.py         | 8 +-------
 bt5/erp5_simulation/bt/revision                           | 2 +-
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/bt5/erp5_simulation/DocumentTemplateItem/InvoiceSimulationRule.py b/bt5/erp5_simulation/DocumentTemplateItem/InvoiceSimulationRule.py
index 9e122d722d..73ea59fb18 100644
--- a/bt5/erp5_simulation/DocumentTemplateItem/InvoiceSimulationRule.py
+++ b/bt5/erp5_simulation/DocumentTemplateItem/InvoiceSimulationRule.py
@@ -104,13 +104,7 @@ class InvoicingRuleMovementGenerator(MovementGeneratorMixin):
             ._getInputMovementAndPathTupleList(context):
       kw = self._getPropertyAndCategoryList(input_movement, business_path,
                                             rule)
-      root_simulation_movement = input_movement.getRootSimulationMovement()
-      source = input_movement.getSourceAdministration() or \
-               root_simulation_movement.getSource()
-      destination = input_movement.getDestinationAdministration() or \
-                    root_simulation_movement.getDestination()
-      kw.update({'order':None, 'delivery':None,
-                 'source':source, 'destination':destination})
+      kw.update({'order':None,'delivery':None})
       simulation_movement = context.newContent(
         portal_type=RuleMixin.movement_type,
         temp_object=True,
diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision
index c9c41087e2..2702ba3d43 100644
--- a/bt5/erp5_simulation/bt/revision
+++ b/bt5/erp5_simulation/bt/revision
@@ -1 +1 @@
-114
\ No newline at end of file
+115
\ No newline at end of file
-- 
2.30.9