From ce998efebc6c95288537d2f2d2354499ea5cea6b Mon Sep 17 00:00:00 2001
From: Fabrice Decroix <fabrice@nexedi.com>
Date: Mon, 29 Sep 2008 12:31:15 +0000
Subject: [PATCH] Add destination_function in the expandable categories

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23891 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/DeliveryRule.py | 2 ++
 product/ERP5/Document/OrderRule.py    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/product/ERP5/Document/DeliveryRule.py b/product/ERP5/Document/DeliveryRule.py
index 5b0ac18147..ee02bff289 100644
--- a/product/ERP5/Document/DeliveryRule.py
+++ b/product/ERP5/Document/DeliveryRule.py
@@ -123,6 +123,7 @@ class DeliveryRule(Rule):
               source_section=deliv_mvt.getSourceSection(),
               destination=deliv_mvt.getDestination(),
               destination_section=deliv_mvt.getDestinationSection(),
+              destination_function=deliv_mvt.getDestinationFunction(),
               start_date=deliv_mvt.getStartDate(),
               stop_date=deliv_mvt.getStopDate(),
 
@@ -151,6 +152,7 @@ class DeliveryRule(Rule):
                 source_section=deliv_mvt.getSourceSection(),
                 destination=deliv_mvt.getDestination(),
                 destination_section=deliv_mvt.getDestinationSection(),
+                destination_function=deliv_mvt.getDestinationFunction(),
                 start_date=deliv_mvt.getStartDate(),
                 stop_date=deliv_mvt.getStopDate(),
 
diff --git a/product/ERP5/Document/OrderRule.py b/product/ERP5/Document/OrderRule.py
index 691e3840aa..46279610e0 100644
--- a/product/ERP5/Document/OrderRule.py
+++ b/product/ERP5/Document/OrderRule.py
@@ -177,6 +177,7 @@ class OrderRule(DeliveryRule):
         'source_section',
         'destination',
         'destination_section',
+        'destination_function',
         'start_date',
         'stop_date',
         'resource',
-- 
2.30.9