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
203a72e1
Commit
203a72e1
authored
Dec 27, 2016
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AccountModule_statBalance: Always apply selection parameters as last option
parent
95e3eaec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_statBalance.py
...portal_skins/erp5_accounting/AccountModule_statBalance.py
+2
-9
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_statBalance.py
View file @
203a72e1
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
params
=
portal
.
ERP5Accounting_getParams
(
selection_name
)
params
=
portal
.
ERP5Accounting_getParams
(
selection_name
)
selection_params
=
context
.
portal_selections
.
getSelectionParamsFor
(
selection_name
)
params
[
'omit_asset_increase'
]
=
omit_asset_increase
params
[
'omit_asset_increase'
]
=
omit_asset_increase
params
[
'omit_asset_decrease'
]
=
omit_asset_decrease
params
[
'omit_asset_decrease'
]
=
omit_asset_decrease
...
@@ -19,17 +18,11 @@ if kw.get('closed_summary'):
...
@@ -19,17 +18,11 @@ if kw.get('closed_summary'):
params
[
'closed_summary'
]
=
kw
[
'closed_summary'
]
params
[
'closed_summary'
]
=
kw
[
'closed_summary'
]
if
context
.
portal_selections
.
getSelectionInvertModeFor
(
selection_name
):
if
context
.
portal_selections
.
getSelectionInvertModeFor
(
selection_name
):
params
[
'node_uid'
]
=
context
.
portal_selections
.
getSelectionInvertModeUidListFor
(
selection_name
)
params
[
'node_uid'
]
=
context
.
portal_selections
.
getSelectionInvertModeUidListFor
(
selection_name
)
elif
'title'
in
selection_params
or
\
else
:
'preferred_gap_id'
in
selection_params
or
\
selection_params
=
context
.
portal_selections
.
getSelectionParamsFor
(
selection_name
)
'id'
in
selection_params
or
\
'translated_validation_state_title'
in
selection_params
:
selection_params
[
'ignore_unknown_columns'
]
=
True
selection_params
[
'ignore_unknown_columns'
]
=
True
# if list is filtered, apply the same filter here
params
[
'node_uid'
]
=
[
x
.
uid
for
x
in
params
[
'node_uid'
]
=
[
x
.
uid
for
x
in
portal
.
portal_catalog
(
**
selection_params
)]
portal
.
portal_catalog
(
**
selection_params
)]
else
:
# make sure we only have Accounts as nodes
params
[
'node_category'
]
=
[
'account_type'
,]
# Remove params used internally by ERP5Accounting_getParams before passing to inventory API
# Remove params used internally by ERP5Accounting_getParams before passing to inventory API
params
.
pop
(
"period_start_date"
,
None
)
params
.
pop
(
"period_start_date"
,
None
)
...
...
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