Commit 31e40bc3 authored by Kevin Deldycke's avatar Kevin Deldycke

(modif by seb) Categories can be used as source_section or destination_section


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21923290
......@@ -98,7 +98,7 @@ else: \n
error_message = "Date is not in an openned Accounting Period" \n
\n
# Get sections and a currency.\n
source_section = transaction.getSourceSection(portal_type = [\'Organisation\'])\n
source_section = transaction.getSourceSection(portal_type = [\'Organisation\',\'Category\'])\n
destination_section = transaction.getDestinationSection(portal_type = [\'Organisation\', \'Person\'])\n
currency = transaction.getResource()\n
\n
......
......@@ -78,8 +78,8 @@ N_ = transaction.Base_TranslateString\n
container.validateTransaction(state_change)\n
\n
# Get sections.\n
source_section = transaction.getSourceSection(portal_type = [\'Person\', \'Organisation\'])\n
destination_section = transaction.getDestinationSection(portal_type = [\'Person\', \'Organisation\'])\n
source_section = transaction.getSourceSection(portal_type = [\'Person\', \'Organisation\',\'Category\'])\n
destination_section = transaction.getDestinationSection(portal_type = [\'Person\', \'Organisation\',\'Category\'])\n
\n
# Check transaction lines.\n
if transaction.getPortalType() not in (\'Balance Transaction\',) :\n
......
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