[Erp5-report] r41941 romain - in /erp5/trunk/bt5/vifib_open_trade: PathTemplateItem/purchas...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 3 13:35:59 CET 2011


Author: romain
Date: Mon Jan  3 13:35:59 2011
New Revision: 41941

URL: http://svn.erp5.org?rev=41941&view=rev
Log:
Set a default purchase trade condition on purchase packing list.

Added:
    erp5/trunk/bt5/vifib_open_trade/PathTemplateItem/purchase_trade_condition_module/
    erp5/trunk/bt5/vifib_open_trade/PathTemplateItem/purchase_trade_condition_module/vifib_purchase_trade_condition.xml
    erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/interactions/assert_purchase_trade_condition.xml
    erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/scripts/Delivery_assertCustomPurchaseTradeCondition.xml
Modified:
    erp5/trunk/bt5/vifib_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
    erp5/trunk/bt5/vifib_open_trade/bt/revision
    erp5/trunk/bt5/vifib_open_trade/bt/template_path_list
    erp5/trunk/bt5/vifib_open_trade/bt/template_portal_type_workflow_chain_list

Added: erp5/trunk/bt5/vifib_open_trade/PathTemplateItem/purchase_trade_condition_module/vifib_purchase_trade_condition.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/PathTemplateItem/purchase_trade_condition_module/vifib_purchase_trade_condition.xml?rev=41941&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/PathTemplateItem/purchase_trade_condition_module/vifib_purchase_trade_condition.xml (added)
+++ erp5/trunk/bt5/vifib_open_trade/PathTemplateItem/purchase_trade_condition_module/vifib_purchase_trade_condition.xml [utf8] Mon Jan  3 13:35:59 2011
@@ -0,0 +1,146 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Purchase Trade Condition" module="erp5.portal_type"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Access_contents_information_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Add_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Modify_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_View_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>specialise/business_process_module/erp5_default_business_process</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>comment</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>vifib_purchase_trade_condition</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Purchase Trade Condition</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Default Purchase Trade Condition</string> </value>
+        </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="PersistentMapping" module="Persistence.mapping"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="PersistentMapping" module="Persistence.mapping"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/vifib_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=41941&r1=41940&r2=41941&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] Mon Jan  3 13:35:59 2011
@@ -4,6 +4,10 @@
   <workflow>edit_workflow, hosting_subscription_workflow</workflow>
  </chain>
  <chain>
+  <type>Purchase Packing List</type>
+  <workflow>vifib_open_order_interaction_workflow</workflow>
+ </chain>
+ <chain>
   <type>Sale Order</type>
   <workflow>vifib_open_order_interaction_workflow</workflow>
  </chain>

Added: erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/interactions/assert_purchase_trade_condition.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/interactions/assert_purchase_trade_condition.xml?rev=41941&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/interactions/assert_purchase_trade_condition.xml (added)
+++ erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/interactions/assert_purchase_trade_condition.xml [utf8] Mon Jan  3 13:35:59 2011
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <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>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>after_script_name</string> </key>
+            <value>
+              <list>
+                <string>Delivery_assertCustomPurchaseTradeCondition</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>before_commit_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>assert_purchase_trade_condition</string> </value>
+        </item>
+        <item>
+            <key> <string>method_id</string> </key>
+            <value>
+              <list>
+                <string>order</string>
+                <string>confirm</string>
+                <string>plan</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>once_per_transaction</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type_filter</string> </key>
+            <value>
+              <list>
+                <string>Purchase Packing List</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>script_name</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>temporary_document_disallowed</string> </key>
+            <value> <int>0</int> </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/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/scripts/Delivery_assertCustomPurchaseTradeCondition.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/scripts/Delivery_assertCustomPurchaseTradeCondition.xml?rev=41941&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/scripts/Delivery_assertCustomPurchaseTradeCondition.xml (added)
+++ erp5/trunk/bt5/vifib_open_trade/WorkflowTemplateItem/portal_workflow/vifib_open_order_interaction_workflow/scripts/Delivery_assertCustomPurchaseTradeCondition.xml [utf8] Mon Jan  3 13:35:59 2011
@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+    </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.Log import log\n
+order = state_change[\'object\']\n
+portal = order.getPortalObject()\n
+\n
+### STEP 1: does this order have a client-specific Trade Condition\n
+trade_condition = order.getSpecialiseValue(portal_type="Purchase Trade Condition")\n
+if trade_condition is None:\n
+  # nothing found then create a new custom trade condition\n
+  trade_condition = \'purchase_trade_condition_module/vifib_purchase_trade_condition\'\n
+  order.edit(specialise=trade_condition)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>state_change, **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>state_change</string>
+                            <string>kw</string>
+                            <string>Products.ERP5Type.Log</string>
+                            <string>log</string>
+                            <string>_getitem_</string>
+                            <string>order</string>
+                            <string>_getattr_</string>
+                            <string>portal</string>
+                            <string>trade_condition</string>
+                            <string>None</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_assertCustomPurchaseTradeCondition</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/vifib_open_trade/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/bt/revision?rev=41941&r1=41940&r2=41941&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/vifib_open_trade/bt/revision [utf8] Mon Jan  3 13:35:59 2011
@@ -1 +1 @@
-60
\ No newline at end of file
+62
\ No newline at end of file

Modified: erp5/trunk/bt5/vifib_open_trade/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/bt/template_path_list?rev=41941&r1=41940&r2=41941&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/bt/template_path_list [utf8] (original)
+++ erp5/trunk/bt5/vifib_open_trade/bt/template_path_list [utf8] Mon Jan  3 13:35:59 2011
@@ -11,6 +11,8 @@ portal_rules/default_subscription_item_r
 portal_rules/default_subscription_item_rule/**
 purchase_packing_list_module/test_purchase_packing_list
 purchase_packing_list_module/test_purchase_packing_list/**
+purchase_trade_condition_module/vifib_purchase_trade_condition
+purchase_trade_condition_module/vifib_purchase_trade_condition/**
 sale_trade_condition_module/10
 sale_trade_condition_module/10/**
 sale_trade_condition_module/vifib_trade_condition

Modified: erp5/trunk/bt5/vifib_open_trade/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_open_trade/bt/template_portal_type_workflow_chain_list?rev=41941&r1=41940&r2=41941&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_open_trade/bt/template_portal_type_workflow_chain_list [utf8] (original)
+++ erp5/trunk/bt5/vifib_open_trade/bt/template_portal_type_workflow_chain_list [utf8] Mon Jan  3 13:35:59 2011
@@ -1,3 +1,4 @@
 Hosting Subscription | edit_workflow
 Hosting Subscription | hosting_subscription_workflow
+Purchase Packing List | vifib_open_order_interaction_workflow
 Sale Order | vifib_open_order_interaction_workflow
\ No newline at end of file



More information about the Erp5-report mailing list