Commit 506b9da0 authored by Jérome Perrin's avatar Jérome Perrin

use boolean


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30842 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 357fe5fa
......@@ -77,9 +77,9 @@ class AccountingTransaction(Delivery):
getPreferredAccountingTransactionSectionCategory()
if preferred_section_category:
if section.getPortalType() == 'Person':
return 0
return False
return section.isMemberOf(preferred_section_category)
return 0
return False
security.declareProtected(Permissions.AccessContentsInformation,
'hasDestinationSectionAccounting')
......@@ -94,9 +94,9 @@ class AccountingTransaction(Delivery):
getPreferredAccountingTransactionSectionCategory()
if preferred_section_category:
if section.getPortalType() == 'Person':
return 0
return False
return section.isMemberOf(preferred_section_category)
return 0
return False
security.declareProtected(Permissions.AccessContentsInformation,
'SearchableText')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment