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
Léo-Paul Géneau
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
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(
...
@@ -115,13 +115,14 @@ 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
:
select_list
=
[
'title'
],
for
row
in
portal_catalog
(
uid
=
by_mirror_section_list_dict
.
keys
(),
select_list
=
[
'title'
],
):
uid
=
by_mirror_section_list_dict
.
keys
(),
title
=
row
.
title
):
for
line
in
by_mirror_section_list_dict
[
row
.
uid
]:
title
=
row
.
title
line
[
'mirror_section_title'
]
=
title
for
line
in
by_mirror_section_list_dict
[
row
.
uid
]:
line
[
'mirror_section_title'
]
=
title
return
[
return
[
Object
(
Object
(
uid
=
'new_'
,
uid
=
'new_'
,
...
...
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