[Erp5-report] r29744 - in /erp5/trunk/bt5/erp5_accounting: WorkflowTemplateItem/portal_work...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 16 12:16:49 CEST 2009
Author: jerome
Date: Fri Oct 16 12:16:48 2009
New Revision: 29744
URL: http://svn.erp5.org?rev=29744&view=rev
Log:
set references consistently for multiple organisations in the same branch of group
Modified:
erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/setReferences.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/setReferences.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/setReferences.xml?rev=29744&r1=29743&r2=29744&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/setReferences.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/setReferences.xml [utf8] Fri Oct 16 12:16:48 2009
@@ -59,8 +59,21 @@
transaction = state_change[\'object\']\n
\n
# Get sections.\n
-source_section = transaction.getSourceSection()\n
-destination_section = transaction.getDestinationSection()\n
+source_section = None\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
id_generator = state_change.getPortal().portal_ids.generateNewLengthId\n
\n
@@ -142,15 +155,17 @@
<string>state_change</string>
<string>_getitem_</string>
<string>transaction</string>
+ <string>None</string>
+ <string>source_section</string>
<string>_getattr_</string>
- <string>source_section</string>
+ <string>source_section_value</string>
<string>destination_section</string>
+ <string>destination_section_value</string>
<string>id_generator</string>
<string>invoice_id_group</string>
<string>invoice_reference</string>
<string>period</string>
<string>period_code</string>
- <string>None</string>
<string>str</string>
<string>source_id_group</string>
<string>source_reference</string>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=29744&r1=29743&r2=29744&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Fri Oct 16 12:16:48 2009
@@ -1,1 +1,1 @@
-993
+999
More information about the Erp5-report
mailing list