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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
406a0181
Commit
406a0181
authored
Nov 30, 2020
by
Georgios Dagkakis
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
Changes
1
Show 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,10 +115,11 @@ for brain in portal.portal_simulation.getMovementHistoryList(
...
@@ -115,10 +115,11 @@ for brain in portal.portal_simulation.getMovementHistoryList(
if
line_dict
is
not
None
:
if
line_dict
is
not
None
:
by_mirror_section_list_dict
[
brain
.
mirror_section_uid
].
append
(
line_dict
)
by_mirror_section_list_dict
[
brain
.
mirror_section_uid
].
append
(
line_dict
)
line_list
.
append
(
line_dict
)
line_list
.
append
(
line_dict
)
for
row
in
portal_catalog
(
if
by_mirror_section_list_dict
:
for
row
in
portal_catalog
(
select_list
=
[
'title'
],
select_list
=
[
'title'
],
uid
=
by_mirror_section_list_dict
.
keys
(),
uid
=
by_mirror_section_list_dict
.
keys
(),
):
):
title
=
row
.
title
title
=
row
.
title
for
line
in
by_mirror_section_list_dict
[
row
.
uid
]:
for
line
in
by_mirror_section_list_dict
[
row
.
uid
]:
line
[
'mirror_section_title'
]
=
title
line
[
'mirror_section_title'
]
=
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