From 5d8b17883a5b057f4baeaed0cec8c8690ee0717c Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Thu, 12 Jul 2007 16:17:49 +0000
Subject: [PATCH] not only resource should be used by
 _getCompensatedMovementList, but variation_category_list and
 variation_property_dict as well.

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

diff --git a/product/ERP5/Document/Rule.py b/product/ERP5/Document/Rule.py
index 79d9767a1d..2fffed58f9 100644
--- a/product/ERP5/Document/Rule.py
+++ b/product/ERP5/Document/Rule.py
@@ -283,7 +283,10 @@ class Rule(XMLObject, Predicate):
             deletable_movement_list)
 
   def _getCompensatedMovementList(self, applied_rule,
-                                  matching_property_list=['resource'], **kw):
+                                  matching_property_list=[
+                                  'resource',
+                                  'variation_category_list',
+                                  'variation_property_dict'], **kw):
     """
     Compute the difference between prevision and existing movements
 
-- 
2.30.9