diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml new file mode 100644 index 0000000000000000000000000000000000000000..7cd637089c19387d959e399b1b394f7e65173b32 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml @@ -0,0 +1,103 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="NewOrderRule" module="Products.ERP5Type.Document.NewOrderRule"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Delete_objects_Permission</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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_order_rule</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>new_order_rule</string> </value> + </item> + <item> + <key> <string>last_id</string> </key> + <value> <string>19</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>New Order Rule</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>New Default Order Rule</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>2</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees._OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees._OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/1.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/1.xml new file mode 100644 index 0000000000000000000000000000000000000000..aa38f209e8a911461521f6fb10aa8b99a15c2553 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/1.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>1</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>aggregate</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>aggregate divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/10.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/10.xml new file mode 100644 index 0000000000000000000000000000000000000000..ea363c70361a7ac7329e944f1bee312bb3d7cc53 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/10.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>10</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>source</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>source divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/11.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/11.xml new file mode 100644 index 0000000000000000000000000000000000000000..c5d12ecf9b8f9ffc85930bd9bae3c253380c53d1 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/11.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>11</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>source_account</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>source_account divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/12.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/12.xml new file mode 100644 index 0000000000000000000000000000000000000000..54a763bd761ba87e0f7c361249554008d7b3e5eb --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/12.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>12</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>source_function</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>source_function divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/13.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/13.xml new file mode 100644 index 0000000000000000000000000000000000000000..643fa46f3d785d257a6b94995367f5ccc83c8174 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/13.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>13</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>source_project</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>source_project divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/14.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/14.xml new file mode 100644 index 0000000000000000000000000000000000000000..2c3c8d4610bbde5cba9f6481dfb08e0e0708d097 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/14.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>14</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>source_section</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>source_section divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/15.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/15.xml new file mode 100644 index 0000000000000000000000000000000000000000..161a21ca831f2766c70605c08256bb69a41a4f45 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/15.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>15</string> </value> + </item> + <item> + <key> <string>matching_provider</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>resource</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>resource divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/16.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/16.xml new file mode 100644 index 0000000000000000000000000000000000000000..c8bcb34aa7b0835fa14def07f0434def3704cd8d --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/16.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariationDivergenceTester" module="Products.ERP5Type.Document.VariationDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>16</string> </value> + </item> + <item> + <key> <string>matching_provider</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Variation Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>variation_property_dict</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>variation_property_dict divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/17.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/17.xml new file mode 100644 index 0000000000000000000000000000000000000000..639ff66bde467cde3eea976d76385abb2406bf76 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/17.xml @@ -0,0 +1,56 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="DateTimeDivergenceTester" module="Products.ERP5Type.Document.DateTimeDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>quantity</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>17</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>DateTime Divergence Tester</string> </value> + </item> + <item> + <key> <string>quantity</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>start_date</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>start_date divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/18.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/18.xml new file mode 100644 index 0000000000000000000000000000000000000000..80c005f38a888da350aded84a37fe9e4c36bd339 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/18.xml @@ -0,0 +1,56 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="DateTimeDivergenceTester" module="Products.ERP5Type.Document.DateTimeDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>quantity</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>18</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>DateTime Divergence Tester</string> </value> + </item> + <item> + <key> <string>quantity</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>stop_date</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>stop_date divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/19.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/19.xml new file mode 100644 index 0000000000000000000000000000000000000000..281fab74a12d00bad8a0787db76d3f6f84503bf8 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/19.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="NetConvertedQuantityDivergenceTester" module="Products.ERP5Type.Document.NetConvertedQuantityDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>quantity</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>use_delivery_ratio</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + </tuple> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>solver/portal_types/Quantity Split Solver</string> + <string>solver/portal_types/Quantity Accept Solver</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>19</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Net Converted Quantity Divergence Tester</string> </value> + </item> + <item> + <key> <string>quantity</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>quantity</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>quantity divergence tester</string> </value> + </item> + <item> + <key> <string>use_delivery_ratio</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/2.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/2.xml new file mode 100644 index 0000000000000000000000000000000000000000..2f3a1e6753227836364375f0394ee9ae9c817c31 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/2.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>2</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>base_application</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>base_application divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/3.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/3.xml new file mode 100644 index 0000000000000000000000000000000000000000..913809cec3383bcc29cddd7e80d92e812124fbe1 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/3.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>3</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>base_contribution</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>base_contribution divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/4.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/4.xml new file mode 100644 index 0000000000000000000000000000000000000000..d6424967b0426e1903a0d5b3afbdc9ebfbc674d9 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/4.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>4</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>destination</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>destination divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/5.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/5.xml new file mode 100644 index 0000000000000000000000000000000000000000..6bd643bd1eee2cea96791b98c0c753fc79c248f9 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/5.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>5</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>destination_account</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>destination_account divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/6.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/6.xml new file mode 100644 index 0000000000000000000000000000000000000000..5be6e509e514f1b93b26efee4fcdf7b9e629019a --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/6.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>6</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>destination_function</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>destination_function divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/7.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/7.xml new file mode 100644 index 0000000000000000000000000000000000000000..ceebd4b00e218ce60470c786e2078a508f5c174c --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/7.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>7</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>destination_project</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>destination_project divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/8.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/8.xml new file mode 100644 index 0000000000000000000000000000000000000000..6f9b6105d1dfca821ac381a03726b821db4a7fbd --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/8.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>8</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>destination_section</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>destination_section divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/9.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/9.xml new file mode 100644 index 0000000000000000000000000000000000000000..cfb689ed5f85e818f560124b2ddc9b804581b54c --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule/9.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>9</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>price_currency</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>price_currency divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml new file mode 100644 index 0000000000000000000000000000000000000000..83e039b303b52adcdb25a98d14b1aa8e87794fe1 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml @@ -0,0 +1,103 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="NewOrderRule" module="Products.ERP5Type.Document.NewOrderRule"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Delete_objects_Permission</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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_order_rule</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>new_simple_order_rule</string> </value> + </item> + <item> + <key> <string>last_id</string> </key> + <value> <string>2</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>New Order Rule</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>New Simple Order Rule</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>2</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees._OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees._OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule/1.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule/1.xml new file mode 100644 index 0000000000000000000000000000000000000000..433fff1e44da9d692eb8557aa10e7d4390c49e94 --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule/1.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CategoryMembershipDivergenceTester" module="Products.ERP5Type.Document.CategoryMembershipDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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>solver/portal_types/Quantity Split Solver</string> + </tuple> + </value> + </item> + <item> + <key> <string>divergence_provider</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>1</string> </value> + </item> + <item> + <key> <string>matching_provider</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Membership Divergence Tester</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>resource</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>resource divergence tester</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule/2.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule/2.xml new file mode 100644 index 0000000000000000000000000000000000000000..b789c183238461ebfe1f5615fb4aec3696ff277b --- /dev/null +++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule/2.xml @@ -0,0 +1,92 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="NetConvertedQuantityDivergenceTester" module="Products.ERP5Type.Document.NetConvertedQuantityDivergenceTester"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>use_delivery_ratio</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>quantity_range_min</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>quantity_range_max</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>int</string> </value> + </item> + </dictionary> + </tuple> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>solver/portal_types/Quantity Split Solver</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>2</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Net Converted Quantity Divergence Tester</string> </value> + </item> + <item> + <key> <string>quantity_range_max</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>quantity_range_min</string> </key> + <value> <int>-1</int> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>quantity</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>quantity divergence tester</string> </value> + </item> + <item> + <key> <string>use_delivery_ratio</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision index ac4213d6e97d9cfeb1d7bc8f948c06114a56de18..d2e1cefe89e17269cf846b1b537654757ac8b735 100644 --- a/bt5/erp5_simulation/bt/revision +++ b/bt5/erp5_simulation/bt/revision @@ -1 +1 @@ -43 \ No newline at end of file +44 \ No newline at end of file diff --git a/bt5/erp5_simulation/bt/template_path_list b/bt5/erp5_simulation/bt/template_path_list index 665e4ca25c6a368ef89571ae182b1ceef01684a3..efad1bd8ea8cdfc5f02b89c204d774e9639ea018 100644 --- a/bt5/erp5_simulation/bt/template_path_list +++ b/bt5/erp5_simulation/bt/template_path_list @@ -1,4 +1,8 @@ portal_rules/default_invoicing_rule portal_rules/default_invoicing_rule/3 +portal_rules/new_order_rule +portal_rules/new_order_rule/** +portal_rules/new_simple_order_rule +portal_rules/new_simple_order_rule/** portal_solvers/1 portal_solvers/1/** \ No newline at end of file diff --git a/product/ERP5/tests/testERP5Simulation.py b/product/ERP5/tests/testERP5Simulation.py index fc15c4c918919f86b971b81b7eef04bcd39b1e23..25aef842cb193c126f4d3de3bd64af3575030ba9 100644 --- a/product/ERP5/tests/testERP5Simulation.py +++ b/product/ERP5/tests/testERP5Simulation.py @@ -60,34 +60,9 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase): def validateNewRules(self): # create a New Order Rule document. portal_rules = self.portal.portal_rules - try: - new_order_rule = filter( - lambda x:x.title == 'New Simple Order Rule', - portal_rules.objectValues(portal_type='New Order Rule'))[0] - except IndexError: - new_order_rule = portal_rules.newContent( - title='New Simple Order Rule', - portal_type='New Order Rule', - reference='default_order_rule', - version=2, - ) - # create category divergence testers that is only used for matching - for i in ('resource',): - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='Category Membership Divergence Tester', - tested_property=i, - divergence_provider=0, - matching_provider=1) - # create net converted quantity divergence testers - for i in ('quantity',): - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='Net Converted Quantity Divergence Tester', - tested_property=i, - use_delivery_ratio=1, - quantity_range_min=-1, - quantity_range_max=2) + new_order_rule = filter( + lambda x:x.title == 'New Simple Order Rule', + portal_rules.objectValues(portal_type='New Order Rule'))[0] if new_order_rule.getValidationState() != 'validated': new_order_rule.validate() @@ -235,67 +210,9 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): def validateNewRules(self): # create a New Order Rule document. portal_rules = self.portal.portal_rules - try: - new_order_rule = filter( - lambda x:x.title == 'New Default Order Rule', - portal_rules.objectValues(portal_type='New Order Rule'))[0] - except IndexError: - new_order_rule = portal_rules.newContent( - title='New Default Order Rule', - portal_type='New Order Rule', - reference='default_order_rule', - version=2, - ) - # create category divergence testers - for i in ('aggregate', - 'base_application', - 'base_contribution', - 'destination', - 'destination_account', # XXX-JPS - Needed ? - 'destination_function', # XXX-JPS - Needed ? - 'destination_project', # XXX-JPS - Needed ? - 'destination_section', - 'price_currency', # XXX-JPS - Needed ? - 'source', - 'source_account', # XXX-JPS - Needed ? - 'source_function', # XXX-JPS - Needed ? - 'source_project', # XXX-JPS - Needed ? - 'source_section',): - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='Category Membership Divergence Tester', - tested_property=i) - # create category divergence testers that is also used for matching - for i in ('resource',): - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='Category Membership Divergence Tester', - tested_property=i, - matching_provider=1) - # create variation divergence testers that is also used for matching - for i in ('variation_property_dict',): - # tested_property has no meaning for this tester. - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='Variation Divergence Tester', - tested_property=i, - matching_provider=1) - # create datetime divergence testers - for i in ('start_date', - 'stop_date',): - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='DateTime Divergence Tester', - tested_property=i, - quantity=0) - # create net converted quantity divergence testers - for i in ('quantity',): - new_order_rule.newContent( - title='%s divergence tester' % i, - portal_type='Net Converted Quantity Divergence Tester', - tested_property=i, - use_delivery_ratio=1, - quantity=0) + new_order_rule = filter( + lambda x:x.title == 'New Default Order Rule', + portal_rules.objectValues(portal_type='New Order Rule'))[0] if new_order_rule.getValidationState() != 'validated': new_order_rule.validate()