[Erp5-report] r21305 - in /erp5/trunk/bt5/erp5_item: WorkflowTemplateItem/portal_workflow/ ...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 3 23:38:15 CEST 2008


Author: rafael
Date: Tue Jun  3 23:38:14 2008
New Revision: 21305

URL: http://svn.erp5.org?rev=21305&view=rev
Log:
Added one interaction workflow to set quantity and resource on [Order | Packing List] Lines from items (This is not integrated yet)

Added:
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions/
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions/setDeliveryQuantityAndResouce.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setQuantity.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setResource.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/variables.xml
    erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/worklists.xml
Modified:
    erp5/trunk/bt5/erp5_item/bt/revision
    erp5/trunk/bt5/erp5_item/bt/template_workflow_id_list

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>groups</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>aggregate_interaction_workflow</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Interaction" module="Products.ERP5.Interaction"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mapping</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>interactions</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions/setDeliveryQuantityAndResouce.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions/setDeliveryQuantityAndResouce.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions/setDeliveryQuantityAndResouce.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/interactions/setDeliveryQuantityAndResouce.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>actbox_category</string> </key>
+            <value> <string>workflow</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_url</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>activate_script_name</string> </key>
+            <value>
+              <list>
+                <string>Movement_setQuantity</string>
+                <string>Movement_setResource</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>after_script_name</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>guard</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>setDeliveryQuantityAndResouce</string> </value>
+        </item>
+        <item>
+            <key> <string>method_id</string> </key>
+            <value>
+              <list>
+                <string>_edit</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>once_per_transaction</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type_filter</string> </key>
+            <value>
+              <list>
+                <string>Internal Packing List Line</string>
+                <string>Purchase Order Line</string>
+                <string>Purchase Packing List Line</string>
+                <string>Sale Order Line</string>
+                <string>Sale Packing List Line</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>script_name</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>trigger_type</string> </key>
+            <value> <int>2</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mapping</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>scripts</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setQuantity.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setQuantity.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setQuantity.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setQuantity.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,154 @@
+<?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>Python_magic</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </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>order = state_change[\'object\']\n
+\n
+item_list = order.getAggregateValueList()\n
+quantity = sum([ i.getQuantity() for i in item_list if i.getQuantity() is not None ])\n
+order.setQuantity(quantity)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_filepath</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>order</string>
+                            <string>_getattr_</string>
+                            <string>item_list</string>
+                            <string>sum</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>_getiter_</string>
+                            <string>i</string>
+                            <string>None</string>
+                            <string>quantity</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>Movement_setQuantity</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setResource.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setResource.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setResource.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/scripts/Movement_setResource.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,157 @@
+<?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>Python_magic</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </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>order = state_change[\'object\']\n
+\n
+resource_list = [ ]\n
+for item in order.getAggregateValueList():\n
+  resource = item.Item_getResourceValue()\n
+  if resource not in resource_list or (resource is not None):\n
+    resource_list.append(resource)\n
+\n
+if len(resource_list) == 1: \n
+  order.setResourceValue(resource)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_filepath</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>order</string>
+                            <string>resource_list</string>
+                            <string>_getiter_</string>
+                            <string>_getattr_</string>
+                            <string>item</string>
+                            <string>resource</string>
+                            <string>None</string>
+                            <string>len</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>Movement_setResource</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/variables.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/variables.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/variables.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/variables.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Variables" module="Products.DCWorkflow.Variables"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mapping</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>variables</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/worklists.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/worklists.xml?rev=21305&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/worklists.xml (added)
+++ erp5/trunk/bt5/erp5_item/WorkflowTemplateItem/portal_workflow/aggregate_interaction_workflow/worklists.xml Tue Jun  3 23:38:14 2008
@@ -1,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mapping</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>worklists</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_item/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/bt/revision?rev=21305&r1=21304&r2=21305&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_item/bt/revision (original)
+++ erp5/trunk/bt5/erp5_item/bt/revision Tue Jun  3 23:38:14 2008
@@ -1,1 +1,1 @@
-36
+37

Modified: erp5/trunk/bt5/erp5_item/bt/template_workflow_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/bt/template_workflow_id_list?rev=21305&r1=21304&r2=21305&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_item/bt/template_workflow_id_list (original)
+++ erp5/trunk/bt5/erp5_item/bt/template_workflow_id_list Tue Jun  3 23:38:14 2008
@@ -1,1 +1,2 @@
+aggregate_interaction_workflow
 item_workflow




More information about the Erp5-report mailing list