[Erp5-report] r36347 yusei - in /erp5/trunk/bt5/erp5_advanced_invoicing: WorkflowTemplateIt...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 15 11:36:19 CEST 2010


Author: yusei
Date: Tue Jun 15 11:36:13 2010
New Revision: 36347

URL: http://svn.erp5.org?rev=36347&view=rev
Log:
2010-06-15 yusei
* Fix plan transition on invoice_workflow. Appropriate root applied rule must be made.

Added:
    erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml
Modified:
    erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml
    erp5/trunk/bt5/erp5_advanced_invoicing/bt/change_log
    erp5/trunk/bt5/erp5_advanced_invoicing/bt/revision

Added: erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml?rev=36347&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml (added)
+++ erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml [utf8] Tue Jun 15 11:36:13 2010
@@ -0,0 +1,147 @@
+<?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>invoice = state_change[\'object\']\n
+invoice_path = invoice.getPath()\n
+path_and_method_id = (invoice_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
+expand_tag = invoice_path + \'_expand\'\n
+tag = invoice_path + \'_updateAppliedRule\'\n
+\n
+priority = 3\n
+\n
+activate_kw = { \n
+  \'tag\': expand_tag,\n
+  \'priority\': priority,\n
+}\n
+invoice.activate(\n
+    after_path_and_method_id=path_and_method_id,\n
+    after_tag=expand_tag,\n
+    tag=tag,\n
+    priority=priority,\n
+    ).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>state_change</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>state_change</string>
+                            <string>_getitem_</string>
+                            <string>invoice</string>
+                            <string>_getattr_</string>
+                            <string>invoice_path</string>
+                            <string>path_and_method_id</string>
+                            <string>expand_tag</string>
+                            <string>tag</string>
+                            <string>priority</string>
+                            <string>activate_kw</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Delivery_createRule</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml?rev=36347&r1=36346&r2=36347&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml [utf8] Tue Jun 15 11:36:13 2010
@@ -23,7 +23,7 @@
         </item>
         <item>
             <key> <string>after_script_name</string> </key>
-            <value> <string>Delivery_updateSimulation</string> </value>
+            <value> <string>Delivery_createRule</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>

Modified: erp5/trunk/bt5/erp5_advanced_invoicing/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_advanced_invoicing/bt/change_log?rev=36347&r1=36346&r2=36347&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_advanced_invoicing/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_advanced_invoicing/bt/change_log [utf8] Tue Jun 15 11:36:13 2010
@@ -1,3 +1,6 @@
+2010-06-15 yusei
+* Fix plan transition on invoice_workflow. Appropriate root applied rule must be made.
+
 2010-04-27 yusei
 * Fix list view forms for sale/purchase invoice module.
 * Fix purchase invoice default view action. View form for purchase invoice transaction was used.

Modified: erp5/trunk/bt5/erp5_advanced_invoicing/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_advanced_invoicing/bt/revision?rev=36347&r1=36346&r2=36347&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_advanced_invoicing/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_advanced_invoicing/bt/revision [utf8] Tue Jun 15 11:36:13 2010
@@ -1 +1 @@
-88
\ No newline at end of file
+89
\ No newline at end of file




More information about the Erp5-report mailing list