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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
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
Changes
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