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
Nikola Balog
erp5
Commits
2ee339ac
Commit
2ee339ac
authored
Jul 05, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: fix software publication reject
parent
86e2ffa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_cancelRelatedWebDocument.py
...appstore_base/SoftwareRelease_cancelRelatedWebDocument.py
+10
-5
No files found.
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_cancelRelatedWebDocument.py
View file @
2ee339ac
...
@@ -8,16 +8,23 @@ web_document_list = portal.portal_catalog(
...
@@ -8,16 +8,23 @@ web_document_list = portal.portal_catalog(
validation_state
=
"submitted"
,
validation_state
=
"submitted"
,
)
)
for
web_document
in
web_document_list
:
for
web_document
in
web_document_list
:
web_document
.
cancel
()
web_document
.
cancel
()
software_product
=
context
.
getFollowUpValue
(
portal_type
=
"Software Product"
)
software_product
=
context
.
getFollowUpValue
(
portal_type
=
"Software Product"
)
web_site
=
software_product
.
SoftwareProduct_getRelatedWebSite
()
web_site
=
software_product
.
SoftwareProduct_getRelatedWebSite
()
version_web_section
=
None
if
software_release
.
getReference
()
in
web_site
:
version_web_section
=
web_site
[
software_release
.
getReference
()]
#backward compatibily
if
not
version_web_section
and
software_release
.
getVersion
()
in
web_site
:
version_web_section
=
web_site
[
software_release
.
getVersion
()]
if
not
version_web_section
:
return
version_web_section
=
web_site
[
software_release
.
getVersion
()]
version_web_section
.
setCriterion
(
'validation_state'
,
'cancel'
)
version_web_section
.
setCriterion
(
'validation_state'
,
'cancel'
)
version_web_section
.
setTitle
(
"Rejected "
+
version_web_section
.
getTitle
())
version_web_section
.
setTitle
(
"Rejected "
+
version_web_section
.
getTitle
())
def
webSectionUpdatePredicate
(
current_section
):
def
webSectionUpdatePredicate
(
current_section
):
...
@@ -26,5 +33,3 @@ def webSectionUpdatePredicate(current_section):
...
@@ -26,5 +33,3 @@ def webSectionUpdatePredicate(current_section):
webSectionUpdatePredicate
(
child_section
)
webSectionUpdatePredicate
(
child_section
)
webSectionUpdatePredicate
(
version_web_section
)
webSectionUpdatePredicate
(
version_web_section
)
#version_web_section.cancel()
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