Commit 14037ed6 authored by Jérome Perrin's avatar Jérome Perrin

AccountingTransaction_isSourceView should consider a transaction where

destination_section is an Organisation and source_section an employee from this
organisation to be a "Source view Transaction"



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11365 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd7d221b
......@@ -72,6 +72,8 @@
section_category = context.portal_preferences\\\n
.getPreferredAccountingTransactionSectionCategory()\n
if source is not None and section_category:\n
if source.getPortalType() == \'Person\':\n
return 0\n
if source.isMemberOf(section_category):\n
return 1\n
\n
......
131
\ No newline at end of file
132
\ No newline at end of file
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