From ab5288a260ab9b326bdcf1d159f02647754f8a64 Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Wed, 21 Dec 2011 14:45:29 +0100
Subject: [PATCH] _migrateSimulationTree: forgot 'delivery_ratio' property

---
 product/ERP5/Document/AppliedRule.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5/Document/AppliedRule.py b/product/ERP5/Document/AppliedRule.py
index ef7341e2f6..3ebd0eba05 100644
--- a/product/ERP5/Document/AppliedRule.py
+++ b/product/ERP5/Document/AppliedRule.py
@@ -425,6 +425,10 @@ class AppliedRule(XMLObject, ExplainableMixin):
             elif movement is not None:
               sm._setDeliveryValue(movement)
               delivery_set.add(sm.getExplanationValue())
+            try:
+              sm.delivery_ratio = old_sm.aq_base.delivery_ratio
+            except AttributeError:
+              pass
             recorded_property_dict = {}
             edit_kw = {}
             kw['quantity'] = 0
-- 
2.30.9