From 6a7d73f933bc0507ee9911b2f59459c74a3ccce2 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Fri, 9 Mar 2018 16:40:59 +0900 Subject: [PATCH] erp5_real_time_inventory_accounting: Split the BP into dedicated ones for Sale, Purchase and Internal. Checking 'delivery' portal_type for PL type will not work on real implementations as the PL is not built during the first expand and expand_related=0 after and this is how it should be done anyway. --- ...ction_selectInventoryAssetPriceMovement.py | 5 +- .../bpm_internal_hoge.xml | 318 ++++++++++++++++++ .../deliver_link.xml | 0 .../delivery_path.xml | 0 .../inventory_account_link.xml | 11 +- ...accounting_stock_ledger_in_credit_path.xml | 6 +- ..._accounting_stock_ledger_in_debit_path.xml | 6 +- ...ccounting_stock_ledger_out_credit_path.xml | 6 +- ...accounting_stock_ledger_out_debit_path.xml | 6 +- .../bpm_purchase_hoge.xml | 318 ++++++++++++++++++ .../bpm_purchase_hoge/deliver_link.xml | 110 ++++++ .../bpm_purchase_hoge/delivery_path.xml | 98 ++++++ .../inventory_account_link.xml | 112 ++++++ ...accounting_stock_ledger_in_credit_path.xml | 158 +++++++++ ..._accounting_stock_ledger_in_debit_path.xml | 154 +++++++++ ...counting_transit_ledger_in_credit_path.xml | 10 +- ...ory_accounting_transit_ledger_in_debit.xml | 10 +- ...ounting_transit_ledger_out_credit_path.xml | 10 +- ...counting_transit_ledger_out_debit_path.xml | 10 +- .../{bpm_hoge.xml => bpm_sale_hoge.xml} | 10 +- .../bpm_sale_hoge/deliver_link.xml | 110 ++++++ .../bpm_sale_hoge/delivery_path.xml | 98 ++++++ .../bpm_sale_hoge/inventory_account_link.xml | 112 ++++++ ...ccounting_stock_ledger_out_credit_path.xml | 158 +++++++++ ...accounting_stock_ledger_out_debit_path.xml | 154 +++++++++ ...counting_transit_ledger_in_credit_path.xml | 164 +++++++++ ...ory_accounting_transit_ledger_in_debit.xml | 154 +++++++++ ...ounting_transit_ledger_out_credit_path.xml | 158 +++++++++ ...counting_transit_ledger_out_debit_path.xml | 154 +++++++++ ...gInternalStockLedgerInCreditDestination.py | 4 + ...InternalStockLedgerInCreditDestination.xml | 62 ++++ ...ngInternalStockLedgerInDebitDestination.py | 1 + ...gInternalStockLedgerInDebitDestination.xml | 62 ++++ ...ntingInternalStockLedgerOutCreditSource.py | 1 + ...tingInternalStockLedgerOutCreditSource.xml | 62 ++++ ...untingInternalStockLedgerOutDebitSource.py | 4 + ...ntingInternalStockLedgerOutDebitSource.xml | 62 ++++ ...gPurchaseStockLedgerInCreditDestination.py | 4 + ...PurchaseStockLedgerInCreditDestination.xml | 62 ++++ ...ngPurchaseStockLedgerInDebitDestination.py | 4 + ...gPurchaseStockLedgerInDebitDestination.xml | 62 ++++ ...urchaseTransitLedgerInCreditDestination.py | 4 + ...rchaseTransitLedgerInCreditDestination.xml | 62 ++++ ...PurchaseTransitLedgerInDebitDestination.py | 4 + ...urchaseTransitLedgerInDebitDestination.xml | 62 ++++ ...rchaseTransitLedgerOutCreditDestination.py | 4 + ...chaseTransitLedgerOutCreditDestination.xml | 62 ++++ ...urchaseTransitLedgerOutDebitDestination.py | 4 + ...rchaseTransitLedgerOutDebitDestination.xml | 62 ++++ ...ccountingSaleStockLedgerOutCreditSource.py | 4 + ...ountingSaleStockLedgerOutCreditSource.xml} | 2 +- ...AccountingSaleStockLedgerOutDebitSource.py | 4 + ...countingSaleStockLedgerOutDebitSource.xml} | 2 +- ...countingSaleTransitLedgerInCreditSource.py | 4 + ...untingSaleTransitLedgerInCreditSource.xml} | 2 +- ...ccountingSaleTransitLedgerInDebitSource.py | 4 + ...ountingSaleTransitLedgerInDebitSource.xml} | 2 +- ...ountingSaleTransitLedgerOutCreditSource.py | 4 + ...untingSaleTransitLedgerOutCreditSource.xml | 62 ++++ ...countingSaleTransitLedgerOutDebitSource.py | 4 + ...untingSaleTransitLedgerOutDebitSource.xml} | 2 +- ...ccountingStockLedgerInCreditDestination.py | 12 - ...AccountingStockLedgerInDebitDestination.py | 11 - ...oryAccountingStockLedgerOutCreditSource.py | 11 - ...toryAccountingStockLedgerOutDebitSource.py | 12 - ...ountingTransitLedgerInCreditDestination.py | 11 - ...untingTransitLedgerInCreditDestination.xml | 62 ---- ...ryAccountingTransitLedgerInCreditSource.py | 11 - ...countingTransitLedgerInDebitDestination.py | 11 - ...ountingTransitLedgerInDebitDestination.xml | 62 ---- ...oryAccountingTransitLedgerInDebitSource.py | 11 - ...ryAccountingTransitLedgerInDebitSource.xml | 62 ---- ...untingTransitLedgerOutCreditDestination.py | 11 - ...ntingTransitLedgerOutCreditDestination.xml | 62 ---- ...yAccountingTransitLedgerOutCreditSource.py | 11 - ...AccountingTransitLedgerOutCreditSource.xml | 62 ---- ...ountingTransitLedgerOutDebitDestination.py | 11 - ...untingTransitLedgerOutDebitDestination.xml | 62 ---- ...ryAccountingTransitLedgerOutDebitSource.py | 11 - ...yAccountingTransitLedgerOutDebitSource.xml | 62 ---- ...st.erp5.testRealTimeInventoryAccounting.py | 10 +- ..._keep_last_workflow_history_only_path_list | 4 +- .../bt/template_path_list | 8 +- 83 files changed, 3349 insertions(+), 611 deletions(-) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge.xml rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/deliver_link.xml (100%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/delivery_path.xml (100%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/inventory_account_link.xml (91%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/inventory_accounting_stock_ledger_in_credit_path.xml (92%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/inventory_accounting_stock_ledger_in_debit_path.xml (92%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/inventory_accounting_stock_ledger_out_credit_path.xml (92%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_internal_hoge}/inventory_accounting_stock_ledger_out_debit_path.xml (92%) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/deliver_link.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/delivery_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_account_link.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_credit_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_debit_path.xml rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_purchase_hoge}/inventory_accounting_transit_ledger_in_credit_path.xml (91%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_purchase_hoge}/inventory_accounting_transit_ledger_in_debit.xml (91%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_purchase_hoge}/inventory_accounting_transit_ledger_out_credit_path.xml (91%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge => bpm_purchase_hoge}/inventory_accounting_transit_ledger_out_debit_path.xml (91%) rename bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/{bpm_hoge.xml => bpm_sale_hoge.xml} (96%) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/deliver_link.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/delivery_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_account_link.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_credit_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_debit_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_credit_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_debit.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_credit_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_debit_path.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.py rename bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/{TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.xml => TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.xml} (97%) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.py rename bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/{TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.xml => TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.xml} (97%) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.py rename bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/{TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.xml => TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.xml} (97%) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.py rename bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/{TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.xml => TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.xml} (97%) create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.py create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.xml create mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.py rename bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/{TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.xml => TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.xml} (97%) delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.xml delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.xml delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.xml delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.xml delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.xml delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.xml delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.py delete mode 100644 bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.xml diff --git a/bt5/erp5_real_time_inventory_accounting/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting/AccountingTransaction_selectInventoryAssetPriceMovement.py b/bt5/erp5_real_time_inventory_accounting/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting/AccountingTransaction_selectInventoryAssetPriceMovement.py index b8718b69b0..cc6642edce 100644 --- a/bt5/erp5_real_time_inventory_accounting/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting/AccountingTransaction_selectInventoryAssetPriceMovement.py +++ b/bt5/erp5_real_time_inventory_accounting/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting/AccountingTransaction_selectInventoryAssetPriceMovement.py @@ -1,12 +1,9 @@ -kw['parent_specialise_reference'] = ['default_inventory_accounting_transaction_rule'] -kw['grand_grand_parent_specialise_reference'] = ['default_delivering_rule', 'default_delivery_rule'] -kw['explanation_portal_type'] = ['Sale Packing List', 'Purchase Packing List', 'Internal Packing List', 'Production Packing List'] kw['portal_type'] = 'Simulation Movement' kw['delivery_uid'] = None kw['left_join_list'] = ['delivery_uid'] kw['select_dict'] = dict(delivery_uid=None) kw['group_by'] = ('uid',) -kw['simulation_state'] = ['planned', 'auto_planned'] +kw['grand_parent_simulation_state'] = 'started', 'stopped', 'delivered' result = context.portal_catalog(**kw) context.log("%r => %r" % (kw, [brain.getObject() for brain in result])) diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge.xml new file mode 100644 index 0000000000..5ce604675c --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge.xml @@ -0,0 +1,318 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Business Process" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>HOGE-INTERNAL</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>bpm_internal_hoge</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Business Process</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>HOGE Internal Business Process</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>1</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> + </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="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="6" aka="AAAAAAAAAAY="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="7" aka="AAAAAAAAAAc="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> + </value> + </item> + <item> + <key> <string>validation_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="8" aka="AAAAAAAAAAg="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> + </pickle> + <pickle> + <tuple> + <none/> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>966.3681.64349.54681</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1520578687.86</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </tuple> + </pickle> + </record> + <record id="9" aka="AAAAAAAAAAk="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> + </pickle> + <pickle> + <tuple> + <none/> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>validate</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1520579325.16</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>validated</string> </value> + </item> + </dictionary> + </list> + </tuple> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/deliver_link.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/deliver_link.xml similarity index 100% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/deliver_link.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/deliver_link.xml diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/delivery_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/delivery_path.xml similarity index 100% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/delivery_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/delivery_path.xml diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_account_link.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_account_link.xml similarity index 91% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_account_link.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_account_link.xml index 1fc415f7ec..75ba806fb1 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_account_link.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_account_link.xml @@ -26,7 +26,16 @@ <string>trade_phase/trade/inventory_accounting</string> <string>successor/trade_state/inventory_accounted</string> <string>delivery_builder/portal_deliveries/inventory_asset_price_accounting_transaction_builder</string> - <string>delivery_builder/portal_deliveries/sale_invoice_transaction_builder</string> + </tuple> + </value> + </item> + <item> + <key> <string>completed_state</string> </key> + <value> + <tuple> + <string>delivered</string> + <string>started</string> + <string>stopped</string> </tuple> </value> </item> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_in_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_in_credit_path.xml similarity index 92% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_in_credit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_in_credit_path.xml index b99477f71b..b770eb9268 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_in_credit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_in_credit_path.xml @@ -56,7 +56,7 @@ </item> <item> <key> <string>destination_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination</string> </value> </item> <item> <key> <string>efficiency</string> </key> @@ -114,7 +114,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Production Packing List Line\', \'Production Packing List Cell\', \'Purchase Packing List Line\', \'Purchase Packing List Cell\', \'Internal Packing List Line\', \'Internal Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_in_debit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_in_debit_path.xml similarity index 92% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_in_debit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_in_debit_path.xml index 7d313ca3ea..4c5941d174 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_in_debit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_in_debit_path.xml @@ -56,7 +56,7 @@ </item> <item> <key> <string>destination_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination</string> </value> </item> <item> <key> <string>id</string> </key> @@ -110,7 +110,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Production Packing List Line\', \'Production Packing List Cell\', \'Purchase Packing List Line\', \'Purchase Packing List Cell\', \'Internal Packing List Line\', \'Internal Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_out_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_out_credit_path.xml similarity index 92% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_out_credit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_out_credit_path.xml index ec11d4a1cf..2ce9c64aec 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_out_credit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_out_credit_path.xml @@ -98,7 +98,7 @@ </item> <item> <key> <string>source_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource</string> </value> </item> <item> <key> <string>string_index</string> </key> @@ -114,7 +114,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Production Packing List Line\', \'Production Packing List Cell\', \'Sale Packing List Line\', \'Sale Packing List Cell\', \'Internal Packing List Line\', \'Internal Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_out_debit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_out_debit_path.xml similarity index 92% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_out_debit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_out_debit_path.xml index 79c0193c6b..a0cd31c0a1 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_stock_ledger_out_debit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_internal_hoge/inventory_accounting_stock_ledger_out_debit_path.xml @@ -94,7 +94,7 @@ </item> <item> <key> <string>source_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource</string> </value> </item> <item> <key> <string>string_index</string> </key> @@ -110,7 +110,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Production Packing List Line\', \'Production Packing List Cell\', \'Sale Packing List Line\', \'Sale Packing List Cell\', \'Internal Packing List Line\', \'Internal Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge.xml new file mode 100644 index 0000000000..7679cf91a5 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge.xml @@ -0,0 +1,318 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Business Process" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>HOGE-PURCHASE</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>bpm_purchase_hoge</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Business Process</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>HOGE Purchase Business Process</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>1</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> + </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="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="6" aka="AAAAAAAAAAY="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="7" aka="AAAAAAAAAAc="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> + </value> + </item> + <item> + <key> <string>validation_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="8" aka="AAAAAAAAAAg="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> + </pickle> + <pickle> + <tuple> + <none/> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>966.3678.39018.10752</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1520578653.04</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </tuple> + </pickle> + </record> + <record id="9" aka="AAAAAAAAAAk="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> + </pickle> + <pickle> + <tuple> + <none/> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>validate</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1520578659.02</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>validated</string> </value> + </item> + </dictionary> + </list> + </tuple> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/deliver_link.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/deliver_link.xml new file mode 100644 index 0000000000..4de1c5d5e1 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/deliver_link.xml @@ -0,0 +1,110 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Business Link" module="erp5.portal_type"/> + </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>trade_phase/trade/delivery</string> + <string>successor/trade_state/delivered</string> + </tuple> + </value> + </item> + <item> + <key> <string>completed_state</string> </key> + <value> + <tuple> + <string>delivered</string> + <string>started</string> + <string>stopped</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>deliver</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>frozen_state</string> </key> + <value> + <tuple> + <string>cancelled</string> + <string>delivered</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>deliver_link</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Business Link</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/delivery_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/delivery_path.xml new file mode 100644 index 0000000000..b20b016e97 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/delivery_path.xml @@ -0,0 +1,98 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </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>trade_phase/trade/delivery</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-DELIVERY</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>delivery_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Delivery</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_account_link.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_account_link.xml new file mode 100644 index 0000000000..75ba806fb1 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_account_link.xml @@ -0,0 +1,112 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Business Link" module="erp5.portal_type"/> + </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>predecessor/trade_state/delivered</string> + <string>trade_phase/trade/inventory_accounting</string> + <string>successor/trade_state/inventory_accounted</string> + <string>delivery_builder/portal_deliveries/inventory_asset_price_accounting_transaction_builder</string> + </tuple> + </value> + </item> + <item> + <key> <string>completed_state</string> </key> + <value> + <tuple> + <string>delivered</string> + <string>started</string> + <string>stopped</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>inventory_account</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>frozen_state</string> </key> + <value> + <tuple> + <string>cancelled</string> + <string>delivered</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_account_link</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Business Link</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_credit_path.xml new file mode 100644 index 0000000000..493c36c671 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_credit_path.xml @@ -0,0 +1,158 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/stock/entree</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-STOCK-LG-IN-CREDIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination</string> </value> + </item> + <item> + <key> <string>efficiency</string> </key> + <value> <float>-1.0</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_stock_ledger_in_credit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Stock Ledger In Credit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_debit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_debit_path.xml new file mode 100644 index 0000000000..d3a349ebe0 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_stock_ledger_in_debit_path.xml @@ -0,0 +1,154 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/stock/entree</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-STOCK-LG-IN-DEBIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_stock_ledger_in_debit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Stock Ledger In Debit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_in_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_in_credit_path.xml similarity index 91% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_in_credit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_in_credit_path.xml index a049926560..6d47cc6efc 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_in_credit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_in_credit_path.xml @@ -62,7 +62,7 @@ </item> <item> <key> <string>destination_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination</string> </value> </item> <item> <key> <string>efficiency</string> </key> @@ -102,7 +102,9 @@ </item> <item> <key> <string>source_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>string_index</string> </key> @@ -118,7 +120,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Sale Packing List Line\', \'Sale Packing List Cell\', \'Purchase Packing List Line\', \'Purchase Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_in_debit.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_in_debit.xml similarity index 91% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_in_debit.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_in_debit.xml index d434f249c7..9b74ae2274 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_in_debit.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_in_debit.xml @@ -56,7 +56,7 @@ </item> <item> <key> <string>destination_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination</string> </value> </item> <item> <key> <string>id</string> </key> @@ -92,7 +92,9 @@ </item> <item> <key> <string>source_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>string_index</string> </key> @@ -108,7 +110,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Sale Packing List Line\', \'Sale Packing List Cell\', \'Purchase Packing List Line\', \'Purchase Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_out_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_out_credit_path.xml similarity index 91% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_out_credit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_out_credit_path.xml index 8ab9aad5ce..62752ed2c4 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_out_credit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_out_credit_path.xml @@ -56,7 +56,7 @@ </item> <item> <key> <string>destination_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination</string> </value> </item> <item> <key> <string>efficiency</string> </key> @@ -96,7 +96,9 @@ </item> <item> <key> <string>source_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>string_index</string> </key> @@ -112,7 +114,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Sale Packing List Line\', \'Sale Packing List Cell\', \'Purchase Packing List Line\', \'Purchase Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_out_debit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_out_debit_path.xml similarity index 91% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_out_debit_path.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_out_debit_path.xml index 5151acce2c..4c0ca91972 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge/inventory_accounting_transit_ledger_out_debit_path.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_purchase_hoge/inventory_accounting_transit_ledger_out_debit_path.xml @@ -56,7 +56,7 @@ </item> <item> <key> <string>destination_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination</string> </value> </item> <item> <key> <string>id</string> </key> @@ -92,7 +92,9 @@ </item> <item> <key> <string>source_method_id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>string_index</string> </key> @@ -108,7 +110,9 @@ </item> <item> <key> <string>test_tales_expression</string> </key> - <value> <string>python: context.getDeliveryValue() is not None and context.getDeliveryValue().getPortalType() in (\'Sale Packing List Line\', \'Sale Packing List Cell\', \'Purchase Packing List Line\', \'Purchase Packing List Cell\')</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge.xml similarity index 96% rename from bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge.xml rename to bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge.xml index a13c658c28..ff03f78d63 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_hoge.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge.xml @@ -84,7 +84,7 @@ </item> <item> <key> <string>default_reference</string> </key> - <value> <string>HOGE</string> </value> + <value> <string>HOGE-SALE</string> </value> </item> <item> <key> <string>description</string> </key> @@ -94,7 +94,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>bpm_hoge</string> </value> + <value> <string>bpm_sale_hoge</string> </value> </item> <item> <key> <string>portal_type</string> </key> @@ -102,7 +102,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>HOGE Business Process</string> </value> + <value> <string>HOGE Sale Business Process</string> </value> </item> <item> <key> <string>version</string> </key> @@ -226,7 +226,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>965.4611.64003.10052</string> </value> + <value> <string>966.3660.44366.15598</string> </value> </item> <item> <key> <string>state</string> </key> @@ -244,7 +244,7 @@ </tuple> <state> <tuple> - <float>1516961817.69</float> + <float>1520578668.79</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/deliver_link.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/deliver_link.xml new file mode 100644 index 0000000000..4de1c5d5e1 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/deliver_link.xml @@ -0,0 +1,110 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Business Link" module="erp5.portal_type"/> + </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>trade_phase/trade/delivery</string> + <string>successor/trade_state/delivered</string> + </tuple> + </value> + </item> + <item> + <key> <string>completed_state</string> </key> + <value> + <tuple> + <string>delivered</string> + <string>started</string> + <string>stopped</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>deliver</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>frozen_state</string> </key> + <value> + <tuple> + <string>cancelled</string> + <string>delivered</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>deliver_link</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Business Link</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/delivery_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/delivery_path.xml new file mode 100644 index 0000000000..b20b016e97 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/delivery_path.xml @@ -0,0 +1,98 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </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>trade_phase/trade/delivery</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-DELIVERY</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>delivery_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Delivery</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_account_link.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_account_link.xml new file mode 100644 index 0000000000..75ba806fb1 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_account_link.xml @@ -0,0 +1,112 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Business Link" module="erp5.portal_type"/> + </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>predecessor/trade_state/delivered</string> + <string>trade_phase/trade/inventory_accounting</string> + <string>successor/trade_state/inventory_accounted</string> + <string>delivery_builder/portal_deliveries/inventory_asset_price_accounting_transaction_builder</string> + </tuple> + </value> + </item> + <item> + <key> <string>completed_state</string> </key> + <value> + <tuple> + <string>delivered</string> + <string>started</string> + <string>stopped</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>inventory_account</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>frozen_state</string> </key> + <value> + <tuple> + <string>cancelled</string> + <string>delivered</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_account_link</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Business Link</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_credit_path.xml new file mode 100644 index 0000000000..823aa96d3a --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_credit_path.xml @@ -0,0 +1,158 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/stock/sortie</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-STOCK-LG-OUT-CREDIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>efficiency</string> </key> + <value> <float>-1.0</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_stock_ledger_out_credit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Stock Ledger Out Credit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_debit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_debit_path.xml new file mode 100644 index 0000000000..ca072c4194 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_stock_ledger_out_debit_path.xml @@ -0,0 +1,154 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/stock/sortie</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-STOCK-LG-OUT-DEBIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_stock_ledger_out_debit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Stock Ledger Out Debit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_credit_path.xml new file mode 100644 index 0000000000..77739a05d6 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_credit_path.xml @@ -0,0 +1,164 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/transit/entree</string> + </tuple> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-TRANSIT-LG-IN-CREDIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>efficiency</string> </key> + <value> <float>-1.0</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_transit_ledger_in_credit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Transit Ledger In Credit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_debit.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_debit.xml new file mode 100644 index 0000000000..a7e24eb265 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_in_debit.xml @@ -0,0 +1,154 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/transit/entree</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-TRANSIT-LG-IN-DEBIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_transit_ledger_in_debit</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Transit Ledger In Debit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_credit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_credit_path.xml new file mode 100644 index 0000000000..2be0de3b12 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_credit_path.xml @@ -0,0 +1,158 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/transit/sortie</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-TRANSIT-LG-OUT-CREDIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>efficiency</string> </key> + <value> <float>-1.0</float> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_transit_ledger_out_credit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Transit Ledger Out Credit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_debit_path.xml b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_debit_path.xml new file mode 100644 index 0000000000..6aaa6052cf --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/PathTemplateItem/business_process_module/bpm_sale_hoge/inventory_accounting_transit_ledger_out_debit_path.xml @@ -0,0 +1,154 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Trade Model Path" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>ledger</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + </tuple> + </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>trade_phase/trade/inventory_accounting</string> + <string>ledger/transit/sortie</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>TMP-INVENTORY-ACCOUNTING-TRANSIT-LG-OUT-DEBIT</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>destination_method_id</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>inventory_accounting_transit_ledger_out_debit_path</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>ledger</string> </key> + <value> <string>stock</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>payment_end_of_month</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Trade Model Path</string> </value> + </item> + <item> + <key> <string>source_method_id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Inventory Accounting Transit Ledger Out Debit</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.py new file mode 100644 index 0000000000..4a60fe5f8f --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/park': + return ['source/account_module/stock_car_park'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.xml new file mode 100644 index 0000000000..1ea68f8816 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerInCreditDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.py new file mode 100644 index 0000000000..808a241ee0 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.py @@ -0,0 +1 @@ +return ['source/account_module/variation_cars'] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.xml new file mode 100644 index 0000000000..7d630cb24b --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerInDebitDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.py new file mode 100644 index 0000000000..808a241ee0 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.py @@ -0,0 +1 @@ +return ['source/account_module/variation_cars'] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.xml new file mode 100644 index 0000000000..61db9342af --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerOutCreditSource</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.py new file mode 100644 index 0000000000..4d5594e4c6 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/workshop': + return ['source/account_module/stock_car_workshop'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.xml new file mode 100644 index 0000000000..0b35ef5376 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingInternalStockLedgerOutDebitSource</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.py new file mode 100644 index 0000000000..877f3eec83 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/supplier': + return ['source/account_module/stock_parts_port'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.xml new file mode 100644 index 0000000000..8bdaf4e27c --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseStockLedgerInCreditDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.py new file mode 100644 index 0000000000..01a31d7929 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/supplier': + return ['source/account_module/variation_parts'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.xml new file mode 100644 index 0000000000..c03822ec73 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseStockLedgerInDebitDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.py new file mode 100644 index 0000000000..9a7f6cf653 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/supplier': + return ['source/account_module/stock_parts_transit'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.xml new file mode 100644 index 0000000000..80045de2b3 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInCreditDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.py new file mode 100644 index 0000000000..01a31d7929 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/supplier': + return ['source/account_module/variation_parts'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.xml new file mode 100644 index 0000000000..2e3acd7f53 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerInDebitDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.py new file mode 100644 index 0000000000..01a31d7929 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/supplier': + return ['source/account_module/variation_parts'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.xml new file mode 100644 index 0000000000..f0777b6d1f --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutCreditDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.py new file mode 100644 index 0000000000..9a7f6cf653 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.py @@ -0,0 +1,4 @@ +if movement.getDestination() == 'organisation_module/supplier': + return ['source/account_module/stock_parts_transit'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.xml new file mode 100644 index 0000000000..243f2df310 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingPurchaseTransitLedgerOutDebitDestination</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.py new file mode 100644 index 0000000000..8076f73d20 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/hoge': + return ['source/account_module/variation_cars'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.xml similarity index 97% rename from bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.xml rename to bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.xml index e3d28b7e37..53446c636b 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource.xml @@ -54,7 +54,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingSaleStockLedgerOutCreditSource</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.py new file mode 100644 index 0000000000..15f288061a --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/hoge': + return ['source/account_module/stock_car_park'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.xml similarity index 97% rename from bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.xml rename to bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.xml index 805369bcf0..84e9e92863 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource.xml @@ -54,7 +54,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingSaleStockLedgerOutDebitSource</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.py new file mode 100644 index 0000000000..8076f73d20 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/hoge': + return ['source/account_module/variation_cars'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.xml similarity index 97% rename from bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.xml rename to bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.xml index 6681d08729..feaa3e23ef 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource.xml @@ -54,7 +54,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerInCreditSource</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.py new file mode 100644 index 0000000000..ec6f3a07d1 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/hoge': + return ['source/account_module/stock_car_transit'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.xml similarity index 97% rename from bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.xml rename to bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.xml index 459d95f561..348d25b001 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource.xml @@ -54,7 +54,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerInDebitSource</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.py new file mode 100644 index 0000000000..ec6f3a07d1 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/hoge': + return ['source/account_module/stock_car_transit'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.xml new file mode 100644 index 0000000000..e18d9f1359 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>movement</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerOutCreditSource</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.py new file mode 100644 index 0000000000..8076f73d20 --- /dev/null +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.py @@ -0,0 +1,4 @@ +if movement.getSource() == 'organisation_module/hoge': + return ['source/account_module/variation_cars'] + +return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.xml similarity index 97% rename from bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.xml rename to bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.xml index 85d9c1f48d..7c8a986fb7 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.xml +++ b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource.xml @@ -54,7 +54,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination</string> </value> + <value> <string>TradeModelPath_getInventoryAccountingSaleTransitLedgerOutDebitSource</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.py deleted file mode 100644 index 9a4b3e0c16..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInCreditDestination.py +++ /dev/null @@ -1,12 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Purchase Packing List'): - if movement.getDestination() == 'organisation_module/supplier': - return ['source/account_module/stock_parts_port'] -elif delivery_portal_type.startswith('Internal Packing List') or delivery_portal_type.startswith('Production Packing List'): - if movement.getDestination() == 'organisation_module/park': - return ['source/account_module/stock_car_park'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.py deleted file mode 100644 index cfa833c5f3..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerInDebitDestination.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Purchase Packing List'): - if movement.getDestination() == 'organisation_module/supplier': - return ['source/account_module/variation_parts'] -elif delivery_portal_type.startswith('Internal Packing List') or delivery_portal_type.startswith('Production Packing List'): - return ['source/account_module/variation_cars'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.py deleted file mode 100644 index 2c345a508a..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutCreditSource.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - if movement.getSource() == 'organisation_module/hoge': - return ['source/account_module/variation_cars'] -elif delivery_portal_type.startswith('Internal Packing List') or delivery_portal_type.startswith('Production Packing List'): - return ['source/account_module/variation_cars'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.py deleted file mode 100644 index ebb33ddaaf..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingStockLedgerOutDebitSource.py +++ /dev/null @@ -1,12 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - if movement.getSource() == 'organisation_module/hoge': - return ['source/account_module/stock_car_park'] -elif delivery_portal_type.startswith('Internal Packing List') or delivery_portal_type.startswith('Production Packing List'): - if movement.getSource() == 'organisation_module/workshop': - return ['source/account_module/stock_car_workshop'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.py deleted file mode 100644 index bb6c1d0ea0..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - return [] -elif delivery_portal_type.startswith('Purchase Packing List'): - if movement.getDestination() == 'organisation_module/supplier': - return ['source/account_module/stock_parts_transit'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.xml deleted file mode 100644 index 45710dfca6..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInCreditDestination</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.py deleted file mode 100644 index 3fffa52054..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInCreditSource.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - if movement.getSource() == 'organisation_module/hoge': - return ['source/account_module/variation_cars'] -elif delivery_portal_type.startswith('Purchase Packing List'): - return [] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.py deleted file mode 100644 index 43cae7ef2a..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - return [] -elif delivery_portal_type.startswith('Purchase Packing List'): - if movement.getDestination() == 'organisation_module/supplier': - return ['source/account_module/variation_parts'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.xml deleted file mode 100644 index 10bcfc9787..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInDebitDestination</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.py deleted file mode 100644 index c3684f89ed..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - if movement.getSource() == 'organisation_module/hoge': - return ['source/account_module/stock_car_transit'] -elif delivery_portal_type.startswith('Purchase Packing List'): - return [] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.xml deleted file mode 100644 index a6b1211788..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerInDebitSource</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.py deleted file mode 100644 index 43cae7ef2a..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - return [] -elif delivery_portal_type.startswith('Purchase Packing List'): - if movement.getDestination() == 'organisation_module/supplier': - return ['source/account_module/variation_parts'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.xml deleted file mode 100644 index 03a98019ca..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutCreditDestination</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.py deleted file mode 100644 index c3684f89ed..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - if movement.getSource() == 'organisation_module/hoge': - return ['source/account_module/stock_car_transit'] -elif delivery_portal_type.startswith('Purchase Packing List'): - return [] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.xml deleted file mode 100644 index 1be939f6b6..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutCreditSource</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.py deleted file mode 100644 index bb6c1d0ea0..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - return [] -elif delivery_portal_type.startswith('Purchase Packing List'): - if movement.getDestination() == 'organisation_module/supplier': - return ['source/account_module/stock_parts_transit'] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.xml deleted file mode 100644 index cba940fd78..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutDebitDestination</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.py b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.py deleted file mode 100644 index 3fffa52054..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.py +++ /dev/null @@ -1,11 +0,0 @@ -delivery_portal_type = movement.getDeliveryValue().getPortalType() -assert delivery_portal_type # XXX debug -if delivery_portal_type.startswith('Sale Packing List'): - if movement.getSource() == 'organisation_module/hoge': - return ['source/account_module/variation_cars'] -elif delivery_portal_type.startswith('Purchase Packing List'): - return [] -else: - raise NotImplementedError - -return [] diff --git a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.xml b/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.xml deleted file mode 100644 index 8d158f521b..0000000000 --- a/bt5/erp5_real_time_inventory_accounting_test/SkinTemplateItem/portal_skins/erp5_real_time_inventory_accounting_test/TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>movement</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>TradeModelPath_getInventoryAccountingTransitLedgerOutDebitSource</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_real_time_inventory_accounting_test/TestTemplateItem/portal_components/test.erp5.testRealTimeInventoryAccounting.py b/bt5/erp5_real_time_inventory_accounting_test/TestTemplateItem/portal_components/test.erp5.testRealTimeInventoryAccounting.py index 8ecfd8a543..ea567c277e 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/TestTemplateItem/portal_components/test.erp5.testRealTimeInventoryAccounting.py +++ b/bt5/erp5_real_time_inventory_accounting_test/TestTemplateItem/portal_components/test.erp5.testRealTimeInventoryAccounting.py @@ -389,7 +389,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc source_value=organisation_hoge, source_section_value=organisation_hoge, price_currency_value=currency_eur, - specialise_value=self.portal.business_process_module.bpm_hoge) + specialise_value=self.portal.business_process_module.bpm_sale_hoge) if stc.getValidationState() != 'validated': stc.validate() @@ -404,7 +404,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc destination_value=organisation_hoge, destination_section_value=organisation_hoge, price_currency_value=currency_eur, - specialise_value=self.portal.business_process_module.bpm_hoge) + specialise_value=self.portal.business_process_module.bpm_purchase_hoge) if ptc.getValidationState() != 'validated': ptc.validate() @@ -419,7 +419,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc source_value=organisation_hoge, source_section_value=organisation_hoge, price_currency_value=currency_eur, - specialise_value=self.portal.business_process_module.bpm_hoge) + specialise_value=self.portal.business_process_module.bpm_internal_hoge) if itc.getValidationState() != 'validated': itc.validate() @@ -986,7 +986,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc def stepTestProductionPackingList_create(self, sequence=None, sequence_list=None): production_packing_list = self.portal.production_packing_list_module.newContent( portal_type='Production Packing List', - specialise_value=self.portal.business_process_module.bpm_hoge, + specialise_value=self.portal.business_process_module.bpm_internal_hoge, title='Transfert Workshop to Park', start_date=DateTime('2018/03/02 00:00:00 GMT+9'), stop_date=DateTime('2018/03/03 00:00:00 GMT+9'), @@ -1074,7 +1074,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc def stepTestProductionPackingListNoPriceAndNoSupply_create(self, sequence=None, sequence_list=None): production_packing_list = self.portal.production_packing_list_module.newContent( portal_type='Production Packing List', - specialise_value=self.portal.business_process_module.bpm_hoge, + specialise_value=self.portal.business_process_module.bpm_internal_hoge, title='Transfer Workshop to Park (No Supply/Price)', start_date=DateTime('2018/03/02 00:00:00 GMT+9'), stop_date=DateTime('2018/03/02 00:00:00 GMT+9'), diff --git a/bt5/erp5_real_time_inventory_accounting_test/bt/template_keep_last_workflow_history_only_path_list b/bt5/erp5_real_time_inventory_accounting_test/bt/template_keep_last_workflow_history_only_path_list index 1709c09d38..1178e06ce8 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/bt/template_keep_last_workflow_history_only_path_list +++ b/bt5/erp5_real_time_inventory_accounting_test/bt/template_keep_last_workflow_history_only_path_list @@ -1 +1,3 @@ -business_process_module/bpm_hoge \ No newline at end of file +business_process_module/bpm_internal_hoge +business_process_module/bpm_purchase_hoge +business_process_module/bpm_sale_hoge \ No newline at end of file diff --git a/bt5/erp5_real_time_inventory_accounting_test/bt/template_path_list b/bt5/erp5_real_time_inventory_accounting_test/bt/template_path_list index 9e98f0439a..1ff264ed6b 100644 --- a/bt5/erp5_real_time_inventory_accounting_test/bt/template_path_list +++ b/bt5/erp5_real_time_inventory_accounting_test/bt/template_path_list @@ -1,3 +1,7 @@ -business_process_module/bpm_hoge -business_process_module/bpm_hoge/** +business_process_module/bpm_internal_hoge +business_process_module/bpm_internal_hoge/** +business_process_module/bpm_purchase_hoge +business_process_module/bpm_purchase_hoge/** +business_process_module/bpm_sale_hoge +business_process_module/bpm_sale_hoge/** portal_categories/ledger/** \ No newline at end of file -- 2.30.9