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
Ekaterina
erp5
Commits
075b2356
Commit
075b2356
authored
Aug 02, 2018
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: relegate setting start/stop date to report
parent
d500ad3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsReport.py
...portal_skins/erp5_corporate_identity/Base_viewAsReport.py
+9
-2
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsReport.py
View file @
075b2356
...
...
@@ -63,8 +63,15 @@ override_document_language = kw.get('document_language')
override_source_organisation_title
=
kw
.
get
(
'override_source_organisation'
,
None
)
override_batch_mode
=
kw
.
get
(
'batch_mode'
)
doc_report_start_date
=
DateTime
(
kw
.
get
(
'start_date'
,
None
)
or
getattr
(
context
.
REQUEST
.
form
,
'start_date'
,
None
)
or
DateTime
(
DateTime
().
year
(),
DateTime
().
month
(),
1
))
doc_report_stop_date
=
DateTime
(
kw
.
get
(
'stop_date'
,
None
)
or
getattr
(
context
.
REQUEST
.
form
,
'stop_date'
,
None
)
or
DateTime
())
# we are just caller, so if no dates are passed, the report must decide what to set
doc_report_start_date_input
=
kw
.
get
(
'start_date'
,
None
)
or
getattr
(
context
.
REQUEST
.
form
,
'start_date'
,
None
)
doc_report_start_date
=
None
if
doc_report_start_date_input
:
doc_report_start_date
=
DateTime
(
doc_report_start_date_input
)
doc_report_stop_date_input
=
kw
.
get
(
'stop_date'
,
None
)
or
getattr
(
context
.
REQUEST
.
form
,
'stop_date'
,
None
)
doc_report_stop_date
=
None
if
doc_report_stop_date_input
:
doc_report_stop_date
=
DateTime
(
doc_report_stop_date_input
)
doc_report_name
=
kw
.
get
(
'report_name'
)
doc_report_title
=
kw
.
get
(
'report_title'
)
...
...
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