From 768a02f546aa5a2faaf20a31530b5b4f051f27c0 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Fri, 12 Feb 2010 02:13:24 +0000
Subject: [PATCH] here, order or delivery is only one, and we use 'order' not
 'order_list' as a matching property.

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

diff --git a/product/ERP5/Document/DeliveryRule.py b/product/ERP5/Document/DeliveryRule.py
index 99be428227..3ecbe5ed23 100644
--- a/product/ERP5/Document/DeliveryRule.py
+++ b/product/ERP5/Document/DeliveryRule.py
@@ -257,6 +257,6 @@ class DeliveryRule(Rule):
       business_path, current_property_dict):
     """Delivery specific update dict"""
     return {
-      'order_list': [movement.getRelativeUrl()],
-      'delivery_list': [movement.getRelativeUrl()],
+      'order': movement.getRelativeUrl(),
+      'delivery': movement.getRelativeUrl(),
     }
diff --git a/product/ERP5/Document/OrderRule.py b/product/ERP5/Document/OrderRule.py
index d729b4681f..d4270bf220 100644
--- a/product/ERP5/Document/OrderRule.py
+++ b/product/ERP5/Document/OrderRule.py
@@ -197,5 +197,5 @@ class OrderRule(DeliveryRule):
       business_path, current_property_dict):
     """Order rule specific update dictionary"""
     return {
-      'order_list': [movement.getRelativeUrl()],
+      'order': movement.getRelativeUrl(),
     }
-- 
2.30.9