Commit 0fa5e7db authored by Jérome Perrin's avatar Jérome Perrin

AccountingTransactionLine_checkGroupingReferenceIsValid: We are not supposed...

AccountingTransactionLine_checkGroupingReferenceIsValid: We are not supposed to group if the section is a person
parent 9c02cf8c
......@@ -92,7 +92,7 @@ def check(node_uid, section_uid, mirror_section_uid):\n
\n
node_uid = context.getSourceUid(portal_type=\'Account\')\n
section_uid = None\n
section = context.getSourceSectionValue()\n
section = context.getSourceSectionValue(portal_type=\'Organisation\')\n
if section is not None:\n
section = section.Organisation_getMappingRelatedOrganisation()\n
section_uid = section.getUid()\n
......@@ -106,7 +106,7 @@ if node_uid and section_uid:\n
\n
node_uid = context.getDestinationUid()\n
section_uid = None\n
section = context.getDestinationSectionValue()\n
section = context.getDestinationSectionValue(portal_type=\'Organisation\')\n
if section is not None:\n
section = section.Organisation_getMappingRelatedOrganisation()\n
section_uid = section.getUid()\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