From 4d53bc8a4752a1892890bd08aa3cdcc5002d072c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 15 May 2008 08:39:30 +0000 Subject: [PATCH] quantity, start_date and stop_date properties are handled separatly git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20979 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Rule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/Rule.py b/product/ERP5/Document/Rule.py index 8b501a8f34..ae7410e23a 100644 --- a/product/ERP5/Document/Rule.py +++ b/product/ERP5/Document/Rule.py @@ -328,7 +328,8 @@ class Rule(Predicate, XMLObject): break for k, v in prevision.items(): - if v != movement.getProperty(k): + if k not in ('quantity', 'start_date', 'stop_date') and\ + v != movement.getProperty(k): prop_dict.setdefault(k, v) # update movement lists -- 2.30.9