Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
4b2761bb
Commit
4b2761bb
authored
May 22, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_base: Supply provides Predicate capabilities
parent
cbe713f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
bt5/erp5_base/DocumentTemplateItem/portal_components/document.erp5.Supply.py
...entTemplateItem/portal_components/document.erp5.Supply.py
+8
-0
No files found.
bt5/erp5_base/DocumentTemplateItem/portal_components/document.erp5.Supply.py
View file @
4b2761bb
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment