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
0f6118ad
Commit
0f6118ad
authored
May 23, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix condition as we might get a list or a tuple
parent
0ddd63b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_getMovementList.xml
...rtal_skins/erp5_banking_core/Delivery_getMovementList.xml
+2
-2
bt5/erp5_banking_core/bt/revision
bt5/erp5_banking_core/bt/revision
+1
-1
No files found.
bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_getMovementList.xml
View file @
0f6118ad
...
@@ -58,14 +58,14 @@
...
@@ -58,14 +58,14 @@
#context.log("Delivery_getMovementList", "portal_type = %s" %(portal_type,))\n
#context.log("Delivery_getMovementList", "portal_type = %s" %(portal_type,))\n
#context.log("Delivery_getMovementList", "len portal_type = %s" % (len(portal_type),))\n
#context.log("Delivery_getMovementList", "len portal_type = %s" % (len(portal_type),))\n
\n
\n
if
not same_type(portal_type, []
):\n
if
same_type(portal_type, ""
):\n
return context.getMovementList(portal_type=portal_type)\n
return context.getMovementList(portal_type=portal_type)\n
if len(portal_type) != 2:\n
if len(portal_type) != 2:\n
# use catalog\n
# use catalog\n
return context.getMovementList(portal_type=portal_type)\n
return context.getMovementList(portal_type=portal_type)\n
\n
\n
line_list = context.objectValues(portal_type=portal_type[0])\n
line_list = context.objectValues(portal_type=portal_type[0])\n
#context.log(\'line_list\', line_list)
\n
\n
invert = 0\n
invert = 0\n
if len(line_list) == 0:\n
if len(line_list) == 0:\n
# try with the second portal type\n
# try with the second portal type\n
...
...
bt5/erp5_banking_core/bt/revision
View file @
0f6118ad
581
582
\ 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