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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
c832caf7
Commit
c832caf7
authored
Oct 21, 2022
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workflow: use WorkflowMethod instead of obsolete WorkflowAction.
parent
b3476e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.ApparelMeasurement.py
...tem/portal_components/document.erp5.ApparelMeasurement.py
+2
-2
No files found.
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.ApparelMeasurement.py
View file @
c832caf7
...
...
@@ -29,7 +29,7 @@
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.
CMFCore.WorkflowCore
import
WorkflowAction
from
Products.
ERP5Type.Base
import
WorkflowMethod
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
...
...
@@ -64,7 +64,7 @@ class ApparelMeasurement(XMLObject, XMLMatrix, Image):
# Inheritance
_edit
=
Image
.
_edit
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'edit'
)
edit
=
Workflow
Action
(
_edit
)
edit
=
Workflow
Method
(
_edit
)
security
.
declareProtected
(
Permissions
.
View
,
'index_html'
)
index_html
=
Image
.
index_html
...
...
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