Commit 4b2761bb authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_base: Supply provides Predicate capabilities

parent cbe713f5
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from erp5.component.document.Path import Path from erp5.component.document.Path import Path
from Products.ERP5.mixin.periodicity import PeriodicityMixin from Products.ERP5.mixin.periodicity import PeriodicityMixin
...@@ -58,10 +59,17 @@ class Supply(Path, XMLObject, PeriodicityMixin): ...@@ -58,10 +59,17 @@ class Supply(Path, XMLObject, PeriodicityMixin):
, PropertySheet.Delivery , PropertySheet.Delivery
, PropertySheet.Path , PropertySheet.Path
, PropertySheet.Periodicity , PropertySheet.Periodicity
, PropertySheet.Predicate
, PropertySheet.FlowCapacity , PropertySheet.FlowCapacity
, PropertySheet.Comment , PropertySheet.Comment
) )
#############################################
# Predicate method
#############################################
isPredicate = ConstantGetter('isPredicate', value=True)
asPredicate = Path.asPredicate
####################################################### #######################################################
# Defer indexing process # Defer indexing process
def reindexObject(self, *k, **kw): def reindexObject(self, *k, **kw):
......
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