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
alecs_myu
erp5
Commits
4b71e694
Commit
4b71e694
authored
Jan 18, 2018
by
Tomáš Peterka
Committed by
Tomáš Peterka
Jan 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[accounting] State script's input parameters and do not try to grab them from request
parent
e79eba72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.py
...p5_accounting/Movement_getExplanationTitleAndAnalytics.py
+3
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.xml
...5_accounting/Movement_getExplanationTitleAndAnalytics.xml
+1
-1
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.py
View file @
4b71e694
...
...
@@ -9,8 +9,10 @@ else:
title
=
explanation
.
getTitle
()
analytic_property_list
=
[
explanation
.
getReference
()]
if
analytic_column_list
is
None
:
analytic_column_list
=
request
.
get
(
'analytic_column_list'
,
())
for
property_name
,
property_title
in
request
[
'analytic_column_list'
]
:
#pylint: disable=unused-variable
for
property_name
,
property_title
in
analytic_column_list
:
#pylint: disable=unused-variable
# XXX it would be a little better to reuse editable field
if
property_name
==
'project'
:
analytic_property_list
.
append
(
brain
.
Movement_getProjectTitle
())
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.xml
View file @
4b71e694
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
brain, selection=None, **kwd
</string>
</value>
<value>
<string>
brain, selection=None,
analytic_column_list=(),
**kwd
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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