Commit 4b15a2ba authored by Jean-Paul Smets's avatar Jean-Paul Smets

Coramy tested


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@954 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41f059c9
...@@ -230,3 +230,12 @@ identify a bank account.""" ...@@ -230,3 +230,12 @@ identify a bank account."""
self._setMultimembershipCriterionBaseCategoryList(multimembership_criterion_base_category_list) self._setMultimembershipCriterionBaseCategoryList(multimembership_criterion_base_category_list)
self.reindexObject() 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
...@@ -78,7 +78,7 @@ class Price: ...@@ -78,7 +78,7 @@ class Price:
'type' : 'date', 'type' : 'date',
'mode' : 'w' }, 'mode' : 'w' },
# They are incompatible with the multi company model # They are incompatible with the multi company model
{ 'id' : 'quantity_range', { 'id' : 'quantity_step',
'description' : 'A list of quantity values which define acceptable ranges', 'description' : 'A list of quantity values which define acceptable ranges',
'type' : 'float', 'type' : 'float',
'multivalued' : 1, 'multivalued' : 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment