Commit 9768146e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_base: Supply provides Predicate capabilities

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