From a5a3f17c00784feeaeb3e23ccb8d2c5e648e2e1e Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Fri, 4 Oct 2013 17:39:04 +0200 Subject: [PATCH] New 'journal' base category Acquisition Portal Types is same as for resource. Example of categories: journal accounting consolidation national project deliverable r_and_d qa invalid fixed wontfix trade prediction reality --- .../portal_categories/journal.xml | 89 +++++++++++++++++++ bt5/erp5_base/bt/revision | 2 +- bt5/erp5_base/bt/template_base_category_list | 1 + .../Movement/journal_category.xml | 20 +++++ .../erp5_property_sheets/bt/revision | 2 +- 5 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_base/CategoryTemplateItem/portal_categories/journal.xml create mode 100644 product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Movement/journal_category.xml diff --git a/bt5/erp5_base/CategoryTemplateItem/portal_categories/journal.xml b/bt5/erp5_base/CategoryTemplateItem/portal_categories/journal.xml new file mode 100644 index 0000000000..0e0b943311 --- /dev/null +++ b/bt5/erp5_base/CategoryTemplateItem/portal_categories/journal.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Category" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>acquisition_base_category</string> </key> + <value> + <tuple> + <string>order</string> + <string>parent</string> + </tuple> + </value> + </item> + <item> + <key> <string>acquisition_portal_type</string> </key> + <value> <string>python: list( portal.getPortalAcquisitionMovementTypeList() + portal.getPortalItemTypeList() + portal.getPortalDeliveryTypeList() + portal.getPortalOrderTypeList() + portal.getPortalInvoiceTypeList() + portal.getPortalSupplyTypeList() + portal.getPortalSupplyPathTypeList() + portal.getPortalModelPathTypeList())</string> </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>journal</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Journal is used to split deliveries of the same type in different subsets.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>journal</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Journal</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index a47db8f483..6409db2562 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -1048 \ No newline at end of file +1049 \ No newline at end of file diff --git a/bt5/erp5_base/bt/template_base_category_list b/bt5/erp5_base/bt/template_base_category_list index 705b9e67cc..b24aea5ee7 100644 --- a/bt5/erp5_base/bt/template_base_category_list +++ b/bt5/erp5_base/bt/template_base_category_list @@ -19,6 +19,7 @@ gender grade group insurance_coverage +journal legal_parent marital_status market_segment diff --git a/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Movement/journal_category.xml b/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Movement/journal_category.xml new file mode 100644 index 0000000000..3bd4afbb79 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Movement/journal_category.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Category Property" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>journal_category</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category Property</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_property_sheets/bt/revision b/product/ERP5/bootstrap/erp5_property_sheets/bt/revision index b44fe09a7a..d1cbcfa540 100644 --- a/product/ERP5/bootstrap/erp5_property_sheets/bt/revision +++ b/product/ERP5/bootstrap/erp5_property_sheets/bt/revision @@ -1 +1 @@ -65 \ No newline at end of file +66 \ No newline at end of file -- 2.30.9