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
Labels
Merge Requests
140
Merge Requests
140
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
406a0181
Commit
406a0181
authored
Nov 30, 2020
by
Georgios Dagkakis
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_accounting: Fixup in Aged Balance Report to avoid query with empty list
that would return the whole catalog
parent
dc4ebb58
Pipeline
#12527
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAgedBalanceLineList.py
...ing/AccountingTransactionModule_getAgedBalanceLineList.py
+8
-7
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAgedBalanceLineList.py
View file @
406a0181
...
...
@@ -115,13 +115,14 @@ for brain in portal.portal_simulation.getMovementHistoryList(
if
line_dict
is
not
None
:
by_mirror_section_list_dict
[
brain
.
mirror_section_uid
].
append
(
line_dict
)
line_list
.
append
(
line_dict
)
for
row
in
portal_catalog
(
select_list
=
[
'title'
],
uid
=
by_mirror_section_list_dict
.
keys
(),
):
title
=
row
.
title
for
line
in
by_mirror_section_list_dict
[
row
.
uid
]:
line
[
'mirror_section_title'
]
=
title
if
by_mirror_section_list_dict
:
for
row
in
portal_catalog
(
select_list
=
[
'title'
],
uid
=
by_mirror_section_list_dict
.
keys
(),
):
title
=
row
.
title
for
line
in
by_mirror_section_list_dict
[
row
.
uid
]:
line
[
'mirror_section_title'
]
=
title
return
[
Object
(
uid
=
'new_'
,
...
...
Georgios Dagkakis
@georgios.dagkakis
mentioned in commit
d35b95ef
·
Nov 30, 2020
mentioned in commit
d35b95ef
mentioned in commit d35b95ef9f4ef21caf9781ad89bc885a4d17e619
Toggle commit list
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