[Erp5-report] r17423 - in /erp5/trunk/bt5/erp5_accounting: PathTemplateItem/portal_rules/ P...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 6 17:45:33 CET 2007


Author: alex
Date: Tue Nov  6 17:45:32 2007
New Revision: 17423

URL: http://svn.erp5.org?rev=17423&view=rev
Log:
changes to support new style Rules
- added reference, version and test_method_id to rule objects exported as paths
- added group_type_list in rules type definitions
- added rule test scripts in portal_skins
- added rule_validation_workflow to rule workflow chains

Added:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceRule_testContextPortalType.xml
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionRule_test.xml
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoicingRule_testParentRulePortalType.xml
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentRule_testMovementId.xml
Modified:
    erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_rule.xml
    erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_transaction_rule.xml
    erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoicing_rule.xml
    erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_payment_rule.xml
    erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Rule.xml
    erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Transaction%20Rule.xml
    erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoicing%20Rule.xml
    erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml
    erp5/trunk/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision
    erp5/trunk/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list

Modified: erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.Document.InvoiceRule</string>
-          <string>InvoiceRule</string>
-        </tuple>
-        <none/>
+        <global name="InvoiceRule" module="Products.ERP5Type.Document.InvoiceRule"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -25,6 +22,12 @@
             </value>
         </item>
         <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
             <key> <string>_mt_index</string> </key>
             <value>
               <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
@@ -37,10 +40,20 @@
             </value>
         </item>
         <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
             <key> <string>_tree</string> </key>
             <value>
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
+        </item>
+        <item>
+            <key> <string>default_reference</string> </key>
+            <value> <string>default_invoice_rule</string> </value>
         </item>
         <item>
             <key> <string>id</string> </key>
@@ -49,6 +62,14 @@
         <item>
             <key> <string>portal_type</string> </key>
             <value> <string>Invoice Rule</string> </value>
+        </item>
+        <item>
+            <key> <string>test_method_id</string> </key>
+            <value>
+              <tuple>
+                <string>InvoiceRule_testContextPortalType</string>
+              </tuple>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -60,30 +81,22 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value> <string>1</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.Length</string>
-          <string>Length</string>
-        </tuple>
-        <none/>
-      </tuple>
+      <global name="Length" module="BTrees.Length"/>
     </pickle>
     <pickle> <int>0</int> </pickle>
   </record>
   <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
     </pickle>
     <pickle>
       <none/>
@@ -91,13 +104,7 @@
   </record>
   <record id="4" aka="AAAAAAAAAAQ=">
     <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
     </pickle>
     <pickle>
       <none/>

Modified: erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_transaction_rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_transaction_rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_transaction_rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoice_transaction_rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.Document.InvoiceTransactionRule</string>
-          <string>InvoiceTransactionRule</string>
-        </tuple>
-        <none/>
+        <global name="InvoiceTransactionRule" module="Products.ERP5Type.Document.InvoiceTransactionRule"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -25,6 +22,12 @@
             </value>
         </item>
         <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
             <key> <string>_mt_index</string> </key>
             <value>
               <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
@@ -37,10 +40,20 @@
             </value>
         </item>
         <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
             <key> <string>_tree</string> </key>
             <value>
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
+        </item>
+        <item>
+            <key> <string>default_reference</string> </key>
+            <value> <string>default_invoice_transaction_rule</string> </value>
         </item>
         <item>
             <key> <string>id</string> </key>
@@ -61,6 +74,14 @@
             <value> <string>Invoice Transaction Rule</string> </value>
         </item>
         <item>
+            <key> <string>test_method_id</string> </key>
+            <value>
+              <tuple>
+                <string>InvoiceTransactionRule_test</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
             <key> <string>title</string> </key>
             <value> <string>Invoice Transaction Rule</string> </value>
         </item>
@@ -69,6 +90,10 @@
             <value>
               <none/>
             </value>
+        </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value> <string>1</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoicing_rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoicing_rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoicing_rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_invoicing_rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.Document.InvoicingRule</string>
-          <string>InvoicingRule</string>
-        </tuple>
-        <none/>
+        <global name="InvoicingRule" module="Products.ERP5Type.Document.InvoicingRule"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -43,12 +40,24 @@
             </value>
         </item>
         <item>
+            <key> <string>default_reference</string> </key>
+            <value> <string>default_invoicing_rule</string> </value>
+        </item>
+        <item>
             <key> <string>id</string> </key>
             <value> <string>default_invoicing_rule</string> </value>
         </item>
         <item>
             <key> <string>portal_type</string> </key>
             <value> <string>Invoicing Rule</string> </value>
+        </item>
+        <item>
+            <key> <string>test_method_id</string> </key>
+            <value>
+              <tuple>
+                <string>InvoicingRule_testParentRulePortalType</string>
+              </tuple>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -60,30 +69,22 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value> <string>1</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.Length</string>
-          <string>Length</string>
-        </tuple>
-        <none/>
-      </tuple>
+      <global name="Length" module="BTrees.Length"/>
     </pickle>
     <pickle> <int>0</int> </pickle>
   </record>
   <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
     </pickle>
     <pickle>
       <none/>
@@ -91,13 +92,7 @@
   </record>
   <record id="4" aka="AAAAAAAAAAQ=">
     <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
     </pickle>
     <pickle>
       <none/>

Modified: erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_payment_rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_payment_rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_payment_rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PathTemplateItem/portal_rules/default_payment_rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.Document.PaymentRule</string>
-          <string>PaymentRule</string>
-        </tuple>
-        <none/>
+        <global name="PaymentRule" module="Products.ERP5Type.Document.PaymentRule"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -25,6 +22,12 @@
             </value>
         </item>
         <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
             <key> <string>_mt_index</string> </key>
             <value>
               <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
@@ -37,10 +40,20 @@
             </value>
         </item>
         <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
             <key> <string>_tree</string> </key>
             <value>
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
+        </item>
+        <item>
+            <key> <string>default_reference</string> </key>
+            <value> <string>default_payment_rule</string> </value>
         </item>
         <item>
             <key> <string>id</string> </key>
@@ -51,6 +64,14 @@
             <value> <string>Payment Rule</string> </value>
         </item>
         <item>
+            <key> <string>test_method_id</string> </key>
+            <value>
+              <tuple>
+                <string>PaymentRule_testMovementId</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
             <key> <string>title</string> </key>
             <value> <string>Payment Rule</string> </value>
         </item>
@@ -59,6 +80,10 @@
             <value>
               <none/>
             </value>
+        </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value> <string>1</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%2520Rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
+        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -85,7 +82,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>rule</string>
+              </tuple>
             </value>
         </item>
         <item>
@@ -103,6 +102,10 @@
             <value> <string></string> </value>
         </item>
         <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
               <tuple/>

Modified: erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Transaction%20Rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%2520Transaction%2520Rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Transaction%20Rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoice%20Transaction%20Rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
+        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -85,7 +82,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>rule</string>
+              </tuple>
             </value>
         </item>
         <item>
@@ -103,6 +102,10 @@
             <value> <string></string> </value>
         </item>
         <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
               <tuple/>

Modified: erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoicing%20Rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoicing%2520Rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoicing%20Rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Invoicing%20Rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
+        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -83,7 +80,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>rule</string>
+              </tuple>
             </value>
         </item>
         <item>
@@ -101,6 +100,10 @@
             <value> <string></string> </value>
         </item>
         <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
               <tuple/>

Modified: erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%2520Rule.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml Tue Nov  6 17:45:32 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
+        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -81,7 +78,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>rule</string>
+              </tuple>
             </value>
         </item>
         <item>
@@ -99,6 +98,10 @@
             <value> <string></string> </value>
         </item>
         <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
               <tuple/>

Modified: erp5/trunk/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml Tue Nov  6 17:45:32 2007
@@ -33,19 +33,19 @@
  </chain>
  <chain>
   <type>Invoice Rule</type>
-  <workflow>edit_workflow</workflow>
+  <workflow>edit_workflow, rule_validation_workflow</workflow>
  </chain>
  <chain>
   <type>Invoice Transaction Rule</type>
-  <workflow>edit_workflow, rule_interaction_workflow</workflow>
+  <workflow>edit_workflow, rule_interaction_workflow, rule_validation_workflow</workflow>
  </chain>
  <chain>
   <type>Invoicing Rule</type>
-  <workflow>edit_workflow</workflow>
+  <workflow>edit_workflow, rule_validation_workflow</workflow>
  </chain>
  <chain>
   <type>Payment Rule</type>
-  <workflow>edit_workflow</workflow>
+  <workflow>edit_workflow, rule_validation_workflow</workflow>
  </chain>
  <chain>
   <type>Payment Transaction</type>

Added: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceRule_testContextPortalType.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceRule_testContextPortalType.xml?rev=17423&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceRule_testContextPortalType.xml (added)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceRule_testContextPortalType.xml Tue Nov  6 17:45:32 2007
@@ -1,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>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>return context.getPortalType() in [\'Sale Invoice Transaction\']\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>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>rule</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>rule</string>
+                            <string>_getattr_</string>
+                            <string>context</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>InvoiceRule_testContextPortalType</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionRule_test.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionRule_test.xml?rev=17423&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionRule_test.xml (added)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionRule_test.xml Tue Nov  6 17:45:32 2007
@@ -1,0 +1,164 @@
+<?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>parent = context.getParentValue()\n
+if parent.getPortalType() != \'Applied Rule\':\n
+  return False\n
+\n
+parent_rule = parent.getSpecialiseValue()\n
+if parent_rule.getPortalType() not in [\'Invoice Rule\', \'Invoicing Rule\']:\n
+  return False\n
+\n
+delivery_movement = context.getDeliveryValue()\n
+if delivery_movement is not None and delivery_movement.getPortalType() not in context.getPortalInvoiceMovementTypeList():\n
+  return False\n
+\n
+return rule.getMatchingCell(context) is not None\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>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>rule</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>rule</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>parent</string>
+                            <string>False</string>
+                            <string>parent_rule</string>
+                            <string>delivery_movement</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>InvoiceTransactionRule_test</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoicingRule_testParentRulePortalType.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoicingRule_testParentRulePortalType.xml?rev=17423&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoicingRule_testParentRulePortalType.xml (added)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoicingRule_testParentRulePortalType.xml Tue Nov  6 17:45:32 2007
@@ -1,0 +1,156 @@
+<?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>parent = context.getParentValue()\n
+if parent.getPortalType() == \'Applied Rule\':\n
+  parent_rule = parent.getSpecialiseValue()\n
+  if parent_rule.getPortalType() in [\'Order Rule\', \'Delivery Rule\']:\n
+    return True\n
+return False\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>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>rule</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>rule</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>parent</string>
+                            <string>parent_rule</string>
+                            <string>True</string>
+                            <string>False</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>InvoicingRule_testParentRulePortalType</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentRule_testMovementId.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentRule_testMovementId.xml?rev=17423&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentRule_testMovementId.xml (added)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentRule_testMovementId.xml Tue Nov  6 17:45:32 2007
@@ -1,0 +1,164 @@
+<?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>if context.getId() not in (\'receivable\',):\n
+  return False\n
+\n
+parent = context.getParentValue()\n
+if parent.getPortalType() != \'Applied Rule\':\n
+  return False\n
+\n
+parent_rule = parent.getSpecialiseValue()\n
+if parent_rule.getPortalType() not in [\'Invoice Transaction Rule\']:\n
+  return False\n
+\n
+delivery_movement = context.getDeliveryValue()\n
+return delivery_movement is None or delivery_movement.getPortalType() in context.getPortalAccountingMovementTypeList()\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>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>rule</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>rule</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>False</string>
+                            <string>parent</string>
+                            <string>parent_rule</string>
+                            <string>delivery_movement</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>PaymentRule_testMovementId</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Tue Nov  6 17:45:32 2007
@@ -1,1 +1,1 @@
-492
+494

Modified: erp5/trunk/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list?rev=17423&r1=17422&r2=17423&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list Tue Nov  6 17:45:32 2007
@@ -19,10 +19,14 @@
 Invoice Line | pricing_interaction_workflow
 Invoice Line | trade_matrix_workflow
 Invoice Rule | edit_workflow
+Invoice Rule | rule_validation_workflow
 Invoice Transaction Rule | edit_workflow
 Invoice Transaction Rule | rule_interaction_workflow
+Invoice Transaction Rule | rule_validation_workflow
 Invoicing Rule | edit_workflow
+Invoicing Rule | rule_validation_workflow
 Payment Rule | edit_workflow
+Payment Rule | rule_validation_workflow
 Payment Transaction | accounting_workflow
 Payment Transaction | edit_workflow
 Purchase Invoice Transaction Line | delivery_movement_causality_interaction_workflow




More information about the Erp5-report mailing list