diff --git a/product/ERP5/Document/PredicateGroup.py b/product/ERP5/Document/PredicateGroup.py index ac78cca098ebf1a63c42ce41d6ecbd4dd23355bc..be19b973461e1263247356fcaeffa40f3b88c183 100755 --- a/product/ERP5/Document/PredicateGroup.py +++ b/product/ERP5/Document/PredicateGroup.py @@ -230,3 +230,12 @@ identify a bank account.""" self._setMultimembershipCriterionBaseCategoryList(multimembership_criterion_base_category_list) self.reindexObject() + # Predicate handling + security.declareProtected(Permissions.AccessContentsInformation, 'asPredicate') + def asPredicate(self): + """ + Returns a temporary Predicate based on the Resource properties + """ + return self + + \ No newline at end of file diff --git a/product/ERP5/PropertySheet/Price.py b/product/ERP5/PropertySheet/Price.py index 5533f348e878570cda6233a46fc58978d2661231..d610e045caddaaf195a1bb9fdf0fbe8b2f7716f7 100755 --- a/product/ERP5/PropertySheet/Price.py +++ b/product/ERP5/PropertySheet/Price.py @@ -78,7 +78,7 @@ class Price: 'type' : 'date', 'mode' : 'w' }, # They are incompatible with the multi company model - { 'id' : 'quantity_range', + { 'id' : 'quantity_step', 'description' : 'A list of quantity values which define acceptable ranges', 'type' : 'float', 'multivalued' : 1,