[Erp5-report] r32156 kazuhiko - in /erp5/trunk/bt5: erp5_accounting/SkinTemplateItem/portal...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 1 17:16:35 CET 2010


Author: kazuhiko
Date: Mon Feb  1 17:16:34 2010
New Revision: 32156

URL: http://svn.erp5.org?rev=32156&view=rev
Log:
* rename post genaration script for payment transaction builder.
* call workflow method instead of calling doActionFor().

Added:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_postGeneration.xml
      - copied, changed from r32155, erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml
Removed:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml
Modified:
    erp5/trunk/bt5/erp5_accounting/bt/revision
    erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml
    erp5/trunk/bt5/erp5_invoicing/bt/revision

Removed: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml?rev=32155&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml (removed)
@@ -1,138 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>Script_magic</string> </key>
-            <value> <int>3</int> </value>
-        </item>
-        <item>
-            <key> <string>_bind_names</string> </key>
-            <value>
-              <object>
-                <klass>
-                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
-                </klass>
-                <tuple/>
-                <state>
-                  <dictionary>
-                    <item>
-                        <key> <string>_asgns</string> </key>
-                        <value>
-                          <dictionary>
-                            <item>
-                                <key> <string>name_container</string> </key>
-                                <value> <string>container</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_context</string> </key>
-                                <value> <string>context</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_m_self</string> </key>
-                                <value> <string>script</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_subpath</string> </key>
-                                <value> <string>traverse_subpath</string> </value>
-                            </item>
-                          </dictionary>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>_body</string> </key>
-            <value> <string>from Products.ERP5Type.Message import translateString\n
-\n
-# Return Message object, so that this message will be translated when it is rendered later.\n
-\n
-payment_transaction = context\n
-\n
-if payment_transaction.getSimulationState() == "draft":\n
-  payment_transaction.portal_workflow.doActionFor(\n
-     payment_transaction, \'plan_action\',\n
-     comment=translateString("Initialised by Delivery Builder."))\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string>related_simulation_movement_path_list=None, **kw</string> </value>
-        </item>
-        <item>
-            <key> <string>errors</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_code</string> </key>
-            <value>
-              <object>
-                <klass>
-                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
-                </klass>
-                <tuple/>
-                <state>
-                  <dictionary>
-                    <item>
-                        <key> <string>co_argcount</string> </key>
-                        <value> <int>1</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>related_simulation_movement_path_list</string>
-                            <string>kw</string>
-                            <string>Products.ERP5Type.Message</string>
-                            <string>translateString</string>
-                            <string>context</string>
-                            <string>payment_transaction</string>
-                            <string>_getattr_</string>
-                          </tuple>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_defaults</string> </key>
-            <value>
-              <tuple>
-                <none/>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>PaymentTransaction_copyInvoiceProperties</string> </value>
-        </item>
-        <item>
-            <key> <string>warnings</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Copied: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_postGeneration.xml (from r32155, erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml)
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_postGeneration.xml?p2=erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_postGeneration.xml&p1=erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml&r1=32155&r2=32156&rev=32156&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_copyInvoiceProperties.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_postGeneration.xml [utf8] Mon Feb  1 17:16:34 2010
@@ -55,14 +55,11 @@
             <key> <string>_body</string> </key>
             <value> <string>from Products.ERP5Type.Message import translateString\n
 \n
-# Return Message object, so that this message will be translated when it is rendered later.\n
-\n
 payment_transaction = context\n
 \n
+# initialize accounting_workflow to planned state\n
 if payment_transaction.getSimulationState() == "draft":\n
-  payment_transaction.portal_workflow.doActionFor(\n
-     payment_transaction, \'plan_action\',\n
-     comment=translateString("Initialised by Delivery Builder."))\n
+  payment_transaction.plan(comment=translateString("Initialised by Delivery Builder."))\n
 </string> </value>
         </item>
         <item>
@@ -124,7 +121,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>PaymentTransaction_copyInvoiceProperties</string> </value>
+            <value> <string>PaymentTransaction_postGeneration</string> </value>
         </item>
         <item>
             <key> <string>warnings</string> </key>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=32156&r1=32155&r2=32156&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Mon Feb  1 17:16:34 2010
@@ -1,1 +1,1 @@
-1094
+1095

Modified: erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml?rev=32156&r1=32155&r2=32156&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml [utf8] Mon Feb  1 17:16:34 2010
@@ -35,7 +35,7 @@
         </item>
         <item>
             <key> <string>delivery_after_generation_script_id</string> </key>
-            <value> <string>PaymentTransaction_copyInvoiceProperties</string> </value>
+            <value> <string>PaymentTransaction_postGeneration</string> </value>
         </item>
         <item>
             <key> <string>delivery_cell_collect_order</string> </key>

Modified: erp5/trunk/bt5/erp5_invoicing/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_invoicing/bt/revision?rev=32156&r1=32155&r2=32156&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_invoicing/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_invoicing/bt/revision [utf8] Mon Feb  1 17:16:34 2010
@@ -1,1 +1,1 @@
-326
+327




More information about the Erp5-report mailing list