Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
cc349e74
Commit
cc349e74
authored
Mar 10, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
budget consumption report: do not fail if empty items are selected
parent
66a86f47
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_getBudgetConsumptionReportData.xml
...ins/erp5_budget/Budget_getBudgetConsumptionReportData.xml
+2
-2
bt5/erp5_budget/bt/revision
bt5/erp5_budget/bt/revision
+1
-1
No files found.
bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_getBudgetConsumptionReportData.xml
View file @
cc349e74
...
@@ -81,10 +81,10 @@ else:\n
...
@@ -81,10 +81,10 @@ else:\n
validation_state=validation_state)\n
validation_state=validation_state)\n
budget_type = request.get(\'budget_type\')\n
budget_type = request.get(\'budget_type\')\n
if budget_type:\n
if budget_type:\n
search_kw[\'default_budget_type_uid\'] = [portal.portal_categories.budget_type.restrictedTraverse(x).getUid() for x in budget_type]\n
search_kw[\'default_budget_type_uid\'] = [portal.portal_categories.budget_type.restrictedTraverse(x).getUid() for x in budget_type
if x
]\n
specialise = request.get(\'specialise\')\n
specialise = request.get(\'specialise\')\n
if specialise:\n
if specialise:\n
search_kw[\'default_specialise_uid\'] = [portal.restrictedTraverse(x).getUid() for x in specialise]\n
search_kw[\'default_specialise_uid\'] = [portal.restrictedTraverse(x).getUid() for x in specialise
if x
]\n
\n
\n
budget_list = portal.portal_catalog.searchResults(**search_kw)\n
budget_list = portal.portal_catalog.searchResults(**search_kw)\n
group_filtered_budget_list = []\n
group_filtered_budget_list = []\n
...
...
bt5/erp5_budget/bt/revision
View file @
cc349e74
374
377
\ No newline at end of file
\ No newline at end of file
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