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
Labels
Merge Requests
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
9d9fbe37
Commit
9d9fbe37
authored
Apr 09, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: return empty list
'NoneType' object is not iterable
parent
6843c16a
Pipeline
#9901
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Preference_getDefaultOrganisationBankAccountList.py
...ntity/Preference_getDefaultOrganisationBankAccountList.py
+2
-2
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Preference_getDefaultOrganisationBankAccountList.py
View file @
9d9fbe37
...
...
@@ -17,5 +17,5 @@ if organisation_relative_url:
organisation
=
context
.
restrictedTraverse
(
organisation_relative_url
)
return
[(
''
,
''
)]
+
[(
account
.
getTitle
(),
account
.
getRelativeUrl
())
for
account
in
organisation
.
searchFolder
(
portal_type
=
'Bank Account'
,
sort_on
=
'title'
)]
except
Unauthorized
:
return
None
return
None
return
[(
''
,
''
)]
return
[(
''
,
''
)]
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