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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
erp5
Commits
577b486c
Commit
577b486c
authored
May 22, 2020
by
Cédric Le Ninivin
Committed by
Klaus Wölfel
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_base: Supply provides Predicate capabilities
parent
4f8aaea7
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 @
577b486c
...
@@ -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
):
...
...
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