From f10c0c01b79f7e98834e4c8d5e411ec97b2b3f66 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 9 Aug 2010 08:03:06 +0000 Subject: [PATCH] 2010-08-09 yo * Forgot to rename the id of the Business Path for tax. * Add SaleInvoice_getRuleReference to just return None. * Ignore some properties in the divergence testers for tax movements. * Add base_application for building tax movements. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37646 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../test_bp/{9.xml => tax.xml} | 2 +- .../category_movement_group_on_line.xml | 1 + .../default_category_tester.xml | 2 - .../default_property_tester.xml | 2 - .../SaleInvoice_getRuleReference.xml | 122 ++++++++++++++++++ .../bt/change_log | 6 + .../bt/revision | 2 +- 7 files changed, 131 insertions(+), 6 deletions(-) rename bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/{9.xml => tax.xml} (98%) create mode 100644 bt5/erp5_simulation_performance_test/SkinTemplateItem/portal_skins/erp5_simulation_performance_test/SaleInvoice_getRuleReference.xml diff --git a/bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/9.xml b/bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/tax.xml similarity index 98% rename from bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/9.xml rename to bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/tax.xml index 0021a7f46c..3ef83e4c72 100644 --- a/bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/9.xml +++ b/bt5/erp5_simulation_performance_test/PathTemplateItem/business_process_module/test_bp/tax.xml @@ -64,7 +64,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>9</string> </value> + <value> <string>tax</string> </value> </item> <item> <key> <string>int_index</string> </key> diff --git a/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_deliveries/test_advanced_sale_invoice_trade_model_builder/category_movement_group_on_line.xml b/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_deliveries/test_advanced_sale_invoice_trade_model_builder/category_movement_group_on_line.xml index 7eb8d40a34..79a76a42c9 100644 --- a/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_deliveries/test_advanced_sale_invoice_trade_model_builder/category_movement_group_on_line.xml +++ b/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_deliveries/test_advanced_sale_invoice_trade_model_builder/category_movement_group_on_line.xml @@ -47,6 +47,7 @@ <string>destination_account</string> <string>source_function</string> <string>destination_function</string> + <string>base_application</string> </tuple> </value> </item> diff --git a/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_category_tester.xml b/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_category_tester.xml index 13e72fad74..5d47320fa1 100644 --- a/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_category_tester.xml +++ b/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_category_tester.xml @@ -30,7 +30,6 @@ <string>base_contribution | Base Contribution</string> <string>delivery_mode | Delivery Mode</string> <string>destination_account | Destination Account</string> - <string>destination | Destination</string> <string>destination_function | Destination Function</string> <string>destination_payment | Destination Payment</string> <string>destination_project | Destination Project</string> @@ -43,7 +42,6 @@ <string>source_payment | Source Payment</string> <string>source_project | Source Project</string> <string>source_section | Source Section</string> - <string>source | Source</string> </tuple> </value> </item> diff --git a/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_property_tester.xml b/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_property_tester.xml index de298c73ac..9fbdba2060 100644 --- a/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_property_tester.xml +++ b/bt5/erp5_simulation_performance_test/PathTemplateItem/portal_rules/test_trade_model_rule/default_property_tester.xml @@ -27,8 +27,6 @@ <key> <string>tested_property</string> </key> <value> <tuple> - <string>start_date | Start Date</string> - <string>stop_date | Stop Date</string> <string>price | Price</string> </tuple> </value> diff --git a/bt5/erp5_simulation_performance_test/SkinTemplateItem/portal_skins/erp5_simulation_performance_test/SaleInvoice_getRuleReference.xml b/bt5/erp5_simulation_performance_test/SkinTemplateItem/portal_skins/erp5_simulation_performance_test/SaleInvoice_getRuleReference.xml new file mode 100644 index 0000000000..2d0e029ff8 --- /dev/null +++ b/bt5/erp5_simulation_performance_test/SkinTemplateItem/portal_skins/erp5_simulation_performance_test/SaleInvoice_getRuleReference.xml @@ -0,0 +1,122 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>return None\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>**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>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>kw</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>SaleInvoice_getRuleReference</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation_performance_test/bt/change_log b/bt5/erp5_simulation_performance_test/bt/change_log index 7ee6446443..adb4c18526 100644 --- a/bt5/erp5_simulation_performance_test/bt/change_log +++ b/bt5/erp5_simulation_performance_test/bt/change_log @@ -1,3 +1,9 @@ +2010-08-09 yo +* Forgot to rename the id of the Business Path for tax. +* Add SaleInvoice_getRuleReference to just return None. +* Ignore some properties in the divergence testers for tax movements. +* Add base_application for building tax movements. + 2010-08-09 yo * Forgot to deal with specialise which is always required for BPM. diff --git a/bt5/erp5_simulation_performance_test/bt/revision b/bt5/erp5_simulation_performance_test/bt/revision index 3cacc0b93c..3f10ffe7a4 100644 --- a/bt5/erp5_simulation_performance_test/bt/revision +++ b/bt5/erp5_simulation_performance_test/bt/revision @@ -1 +1 @@ -12 \ No newline at end of file +15 \ No newline at end of file -- 2.30.9