Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
f38407f6
Commit
f38407f6
authored
Aug 23, 2011
by
Tatuya Kamada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to pass movement uid when using movement axis with getInventoryListQueryDict.
parent
b214495e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5/Document/NodeBudgetVariation.py
product/ERP5/Document/NodeBudgetVariation.py
+3
-1
No files found.
product/ERP5/Document/NodeBudgetVariation.py
View file @
f38407f6
...
@@ -201,18 +201,20 @@ class NodeBudgetVariation(BudgetVariation):
...
@@ -201,18 +201,20 @@ class NodeBudgetVariation(BudgetVariation):
portal_categories
=
self
.
getPortalObject
().
portal_categories
portal_categories
=
self
.
getPortalObject
().
portal_categories
query_dict
=
dict
()
query_dict
=
dict
()
uid_based_axis
=
False
if
axis
==
'movement'
:
if
axis
==
'movement'
:
axis
=
'default_%s_uid'
%
base_category
axis
=
'default_%s_uid'
%
base_category
query_dict
[
'select_list'
]
=
[
axis
]
query_dict
[
'select_list'
]
=
[
axis
]
query_dict
[
'group_by'
]
=
[
axis
]
query_dict
[
'group_by'
]
=
[
axis
]
uid_based_axis
=
True
elif
axis
==
'movement_strict_membership'
:
elif
axis
==
'movement_strict_membership'
:
axis
=
'default_strict_%s_uid'
%
base_category
axis
=
'default_strict_%s_uid'
%
base_category
query_dict
[
'select_list'
]
=
[
axis
]
query_dict
[
'select_list'
]
=
[
axis
]
query_dict
[
'group_by'
]
=
[
axis
]
query_dict
[
'group_by'
]
=
[
axis
]
uid_based_axis
=
True
else
:
else
:
query_dict
[
'group_by_%s'
%
axis
]
=
True
query_dict
[
'group_by_%s'
%
axis
]
=
True
uid_based_axis
=
False
if
axis
in
(
'node'
,
'section'
,
'payment'
,
'function'
,
'project'
,
if
axis
in
(
'node'
,
'section'
,
'payment'
,
'function'
,
'project'
,
'mirror_section'
,
'mirror_node'
,
'funding'
):
'mirror_section'
,
'mirror_node'
,
'funding'
):
axis
=
'%s_uid'
%
axis
axis
=
'%s_uid'
%
axis
...
...
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