Commit fce188cc authored by Jérome Perrin's avatar Jérome Perrin

set references consistently for multiple organisations in the same branch of group

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29744 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63fe424d
...@@ -59,8 +59,21 @@ ...@@ -59,8 +59,21 @@
transaction = state_change[\'object\']\n transaction = state_change[\'object\']\n
\n \n
# Get sections.\n # Get sections.\n
source_section = transaction.getSourceSection()\n source_section = None\n
destination_section = transaction.getDestinationSection()\n source_section_value = transaction.getSourceSectionValue()\n
if source_section_value is not None \\\n
and source_section_value.getPortalType() == \'Organisation\':\n
source_section_value = \\\n
source_section_value.Organisation_getMappingRelatedOrganisation()\n
source_section = source_section_value.getRelativeUrl()\n
\n
destination_section = None\n
destination_section_value = transaction.getDestinationSectionValue()\n
if destination_section_value is not None \\\n
and destination_section_value.getPortalType() == \'Organisation\':\n
destination_section_value = \\\n
destination_section_value.Organisation_getMappingRelatedOrganisation()\n
destination_section = destination_section_value.getRelativeUrl()\n
\n \n
id_generator = state_change.getPortal().portal_ids.generateNewLengthId\n id_generator = state_change.getPortal().portal_ids.generateNewLengthId\n
\n \n
...@@ -142,15 +155,17 @@ if not transaction.getDestinationReference():\n ...@@ -142,15 +155,17 @@ if not transaction.getDestinationReference():\n
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>transaction</string> <string>transaction</string>
<string>_getattr_</string> <string>None</string>
<string>source_section</string> <string>source_section</string>
<string>_getattr_</string>
<string>source_section_value</string>
<string>destination_section</string> <string>destination_section</string>
<string>destination_section_value</string>
<string>id_generator</string> <string>id_generator</string>
<string>invoice_id_group</string> <string>invoice_id_group</string>
<string>invoice_reference</string> <string>invoice_reference</string>
<string>period</string> <string>period</string>
<string>period_code</string> <string>period_code</string>
<string>None</string>
<string>str</string> <string>str</string>
<string>source_id_group</string> <string>source_id_group</string>
<string>source_reference</string> <string>source_reference</string>
......
993 999
\ No newline at end of file \ 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