Commit 45d64ab7 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 75b19aad
...@@ -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 Products.ERP5.Document.Path import Path from Products.ERP5.Document.Path import Path
...@@ -56,10 +57,17 @@ class Supply(Path, XMLObject): ...@@ -56,10 +57,17 @@ class Supply(Path, XMLObject):
, PropertySheet.Movement , PropertySheet.Movement
, PropertySheet.Delivery , PropertySheet.Delivery
, PropertySheet.Path , PropertySheet.Path
, 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