diff --git a/product/ERP5/mixin/rule.py b/product/ERP5/mixin/rule.py index 7cc76d4230e9583a3973664b7d77baa646aab9cb..d162f9552794bc9b628d624905830120034a3cd2 100644 --- a/product/ERP5/mixin/rule.py +++ b/product/ERP5/mixin/rule.py @@ -181,7 +181,7 @@ class RuleMixin: """ if exclude_quantity: return filter(lambda x:x.isDivergenceProvider() and \ - 'quantity' in x.getTestedPropertyList(), self.objectValues( + 'quantity' not in x.getTestedPropertyList(), self.objectValues( portal_type=self.getPortalDivergenceTesterTypeList())) else: return filter(lambda x:x.isDivergenceProvider(), self.objectValues(