Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
03192ae8
Commit
03192ae8
authored
Sep 05, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: Add the list of javascript needed by the ReportBox Widget
parent
9b5c665d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5Form/ReportBox.py
product/ERP5Form/ReportBox.py
+13
-0
No files found.
product/ERP5Form/ReportBox.py
View file @
03192ae8
...
@@ -70,6 +70,19 @@ class ReportBoxWidget(Widget.Widget):
...
@@ -70,6 +70,19 @@ class ReportBoxWidget(Widget.Widget):
if
callable
(
report_method
):
if
callable
(
report_method
):
return
report_method
()
return
report_method
()
def
get_javascript_list
(
self
,
field
,
REQUEST
=
None
):
"""
Returns list of javascript needed by the widget
"""
js_list
=
[
'rsvp.js'
,
'renderjs.js'
,
'erp5_gadgetfield.js'
]
result
=
[]
try
:
for
js_file
in
js_list
:
result
.
append
(
field
.
restrictedTraverse
(
js_file
).
absolute_url
())
except
KeyError
:
LOG
(
'keyError:'
,
ERROR
,
'Error Value: %s'
%
js_file
)
return
[]
return
result
class
ReportBoxValidator
(
Validator
.
Validator
):
class
ReportBoxValidator
(
Validator
.
Validator
):
...
...
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