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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
ba7eec4f
Commit
ba7eec4f
authored
Jan 13, 2023
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: XXXhack for sale opprtunity
asked by jp
parent
055cc761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_embedReportDocumentList.py
...rp5_corporate_identity/WebPage_embedReportDocumentList.py
+16
-7
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_embedReportDocumentList.py
View file @
ba7eec4f
...
@@ -40,13 +40,22 @@ if doc_content.find('${WebPage_') != -1:
...
@@ -40,13 +40,22 @@ if doc_content.find('${WebPage_') != -1:
limit
=
1
limit
=
1
)]
)]
if
document_required_follow_up_list
:
if
document_required_follow_up_list
:
substitution_list
=
re
.
findall
(
r'\
${We
bPage_(.*)}'
,
doc_content
)
if
document_required_follow_up_list
[
0
].
getPortalType
()
==
'Sale Opportunity'
:
for
substitution_report
in
substitution_list
:
tmp_follow_up
=
None
if
substitution_report
==
'insertTableOfReferences'
:
for
tmp
in
document_required_follow_up_list
[
0
].
getFollowUpRelatedValueList
(
portal_type
=
'Requirement Document'
):
continue
if
tmp
.
getValidationState
()
==
"validated"
:
substitution_content
=
getReportViaFancyName
(
substitution_report
,
document_required_follow_up_list
[
0
])
tmp_follow_up
=
tmp
if
substitution_content
:
break
doc_content
=
doc_content
.
replace
(
'${WebPage_%s}'
%
substitution_report
,
substitution_content
)
else
:
tmp_follow_up
=
document_required_follow_up_list
[
0
]
if
tmp_follow_up
:
substitution_list
=
re
.
findall
(
r'\
${We
bPage_(.*)}'
,
doc_content
)
for
substitution_report
in
substitution_list
:
if
substitution_report
==
'insertTableOfReferences'
:
continue
substitution_content
=
getReportViaFancyName
(
substitution_report
,
tmp_follow_up
)
if
substitution_content
:
doc_content
=
doc_content
.
replace
(
'${WebPage_%s}'
%
substitution_report
,
substitution_content
)
# new handler
# new handler
# fetch reports same way as embedding documents = via links, like:
# fetch reports same way as embedding documents = via links, like:
...
...
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