From fbaeb42d258e836e5f8cd2f0048e722834d66b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 8 Jan 2009 11:04:51 +0000 Subject: [PATCH] 2000-01-08 jerome Introduce budget models git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25044 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Budget%20Model%20Module/view.xml | 77 ++ .../portal_types/Budget%20Model/view.xml | 77 ++ .../Node%20Budget%20Variation/view.xml | 77 ++ .../view.xml | 77 ++ .../budget_model_module.xml | 743 ++++++++++++++++++ .../budget_variation/cell.xml | 41 + .../budget_variation/line.xml | 41 + .../allowed_content_types.xml | 7 + .../portal_types/Budget%20Model%20Module.xml | 172 ++++ .../portal_types/Budget%20Model.xml | 103 +++ .../Node%20Budget%20Variation.xml | 105 +++ ...ection%20Category%20Budget%20Variation.xml | 105 +++ .../workflow_chain_type.xml | 14 +- .../BudgetCell_getConsumedBudget.xml | 95 +-- .../BudgetCell_getEngagedBudget.xml | 95 +-- .../erp5_budget/BudgetLine_asCellRange.xml | 75 +- ...dgetLine_getVariationRangeCategoryList.xml | 130 +++ .../BudgetLine_hashVariationCategoryList.xml | 182 +++++ .../erp5_budget/BudgetLine_init.xml | 50 +- .../erp5_budget/BudgetLine_view.xml | 7 +- ...box_membership_criterion_category_list.xml | 2 +- .../BudgetLine_view/my_budget_line_type.xml | 2 +- .../my_financial_section_list.xml | 159 ---- .../BudgetLine_view/my_group_list.xml | 159 ---- .../my_variation_category_list.xml | 319 ++++++++ .../BudgetModelModule_viewBudgetModelList.xml | 151 ++++ .../listbox.xml} | 54 +- .../erp5_budget/BudgetModel_view.xml | 155 ++++ .../listbox.xml} | 58 +- .../BudgetModel_view/my_description.xml | 93 +++ .../erp5_budget/BudgetModel_view/my_title.xml | 93 +++ .../erp5_budget/Budget_getAccountList.xml | 136 ++++ .../portal_skins/erp5_budget/Budget_view.xml | 1 + .../Budget_view/my_specialise_title.xml | 552 +++++++++++++ .../erp5_budget/NodeBudgetVariation_view.xml | 157 ++++ .../my_budget_variation.xml} | 35 +- .../NodeBudgetVariation_view/my_int_index.xml | 255 ++++++ .../my_node_select_method_id.xml | 263 +++++++ .../my_node_title_method_id.xml | 263 +++++++ .../NodeBudgetVariation_view/my_title.xml | 263 +++++++ .../my_translated_portal_type.xml | 263 +++++++ .../my_variation_base_category.xml | 263 +++++++ .../SectionCategoryBudgetVariation_view.xml | 155 ++++ .../my_budget_variation.xml} | 66 +- .../my_int_index.xml | 255 ++++++ .../my_title.xml | 263 +++++++ .../my_translated_portal_type.xml | 263 +++++++ .../my_variation_base_category_list.xml | 301 +++++++ ...Group.xml => setVariationCategoryList.xml} | 4 +- bt5/erp5_budget/bt/change_log | 3 + bt5/erp5_budget/bt/revision | 2 +- bt5/erp5_budget/bt/template_action_path_list | 6 +- bt5/erp5_budget/bt/template_module_id_list | 1 + ...late_portal_type_allowed_content_type_list | 3 + .../bt/template_portal_type_id_list | 6 +- .../template_portal_type_workflow_chain_list | 6 +- 56 files changed, 6547 insertions(+), 756 deletions(-) create mode 100644 bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model%20Module/view.xml create mode 100644 bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model/view.xml create mode 100644 bt5/erp5_budget/ActionTemplateItem/portal_types/Node%20Budget%20Variation/view.xml create mode 100644 bt5/erp5_budget/ActionTemplateItem/portal_types/Section%20Category%20Budget%20Variation/view.xml create mode 100644 bt5/erp5_budget/ModuleTemplateItem/budget_model_module.xml create mode 100644 bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/cell.xml create mode 100644 bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/line.xml create mode 100644 bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model%20Module.xml create mode 100644 bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model.xml create mode 100644 bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Node%20Budget%20Variation.xml create mode 100644 bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Section%20Category%20Budget%20Variation.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getVariationRangeCategoryList.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_hashVariationCategoryList.xml delete mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section_list.xml delete mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group_list.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_variation_category_list.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList.xml rename bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/{BudgetLine_view/my_budget_section.xml => BudgetModelModule_viewBudgetModelList/listbox.xml} (73%) create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view.xml rename bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/{BudgetLine_view/my_group.xml => BudgetModel_view/listbox.xml} (74%) create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_description.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_title.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_getAccountList.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view/my_specialise_title.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view.xml rename bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/{BudgetLine_view/my_financial_section.xml => NodeBudgetVariation_view/my_budget_variation.xml} (71%) create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_int_index.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_select_method_id.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_title_method_id.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_title.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_translated_portal_type.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_variation_base_category.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view.xml rename bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/{BudgetLine_view/my_region_list.xml => SectionCategoryBudgetVariation_view/my_budget_variation.xml} (55%) create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_int_index.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_title.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_translated_portal_type.xml create mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_variation_base_category_list.xml rename bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/{setGroup.xml => setVariationCategoryList.xml} (94%) diff --git a/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model%20Module/view.xml b/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model%20Module/view.xml new file mode 100644 index 0000000000..11b4629ee6 --- /dev/null +++ b/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model%20Module/view.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_list</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BudgetModelModule_viewBudgetModelList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model/view.xml b/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model/view.xml new file mode 100644 index 0000000000..bcf2e6082f --- /dev/null +++ b/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget%20Model/view.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BudgetModel_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/ActionTemplateItem/portal_types/Node%20Budget%20Variation/view.xml b/bt5/erp5_budget/ActionTemplateItem/portal_types/Node%20Budget%20Variation/view.xml new file mode 100644 index 0000000000..2eb2cc7ce9 --- /dev/null +++ b/bt5/erp5_budget/ActionTemplateItem/portal_types/Node%20Budget%20Variation/view.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/NodeBudgetVariation_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/ActionTemplateItem/portal_types/Section%20Category%20Budget%20Variation/view.xml b/bt5/erp5_budget/ActionTemplateItem/portal_types/Section%20Category%20Budget%20Variation/view.xml new file mode 100644 index 0000000000..a9edda8600 --- /dev/null +++ b/bt5/erp5_budget/ActionTemplateItem/portal_types/Section%20Category%20Budget%20Variation/view.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/SectionCategoryBudgetVariation_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/ModuleTemplateItem/budget_model_module.xml b/bt5/erp5_budget/ModuleTemplateItem/budget_model_module.xml new file mode 100644 index 0000000000..122c75a7cb --- /dev/null +++ b/bt5/erp5_budget/ModuleTemplateItem/budget_model_module.xml @@ -0,0 +1,743 @@ +<module> + <id>budget_model_module</id> + <permission_list> + <permission type='tuple'> + <name>Access Transient Objects</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access arbitrary user session data</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access contents information</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access future portal content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access inactive portal content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access session data</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Accelerated HTTP Cache Managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add BTreeFolder2s</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Browser Id Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Action Icons Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Active Processs</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Caching Policy Managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Calendar Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Core Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Default Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Report Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Setup Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Sites</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Unique Id Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMFActivity Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMFCategory Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMFMailIn Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Clouseaus</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Configured CMF Sites</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Content Type Registrys</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Cookie Crumblers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Database Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Documents, Images, and Files</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Filesystem Formulator Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 OOo Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 PDF Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 PDF Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Publications</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Reports</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Sites</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Subscriptions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Catalog Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Form Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Subversion Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5SyncML Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Type Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ExtFiles</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ExtImages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add External Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Filesystem Directory Views</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Folders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Formulator Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add LocalContents</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add LocalFolders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Localizers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add MailHost objects</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add MessageCatalogs</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add MimetypesRegistry Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Page Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Pluggable Index</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Plugin Registrys</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add PortalTransforms Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Python Scripts</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add RAM Cache Managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ReStructuredText Documents</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Session Data Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Site Roots</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Temporary Folder</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Transient Object Container</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add User Folders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Virtual Host Monsters</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Vocabularies</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Z Gadfly Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Z MySQL Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Z MySQL Deferred Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ZCatalogs</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ZMailIn Clients</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ZMailMessages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ZODB Mount Points</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Zope Tutorials</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal content</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal events</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal folders</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal member</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal topics</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Approve draft changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Browser Id Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change DTML Documents</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change DTML Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Database Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change ExtFile/ExtImage</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change External Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Formulator Fields</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Formulator Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Images and Files</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Lock Information</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Page Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Python Scripts</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Session Data Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Versions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change ZMailIn</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change ZMailMessages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change bindings</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change cache managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change cache settings</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change configuration</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change local roles</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change permissions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change portal events</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change portal topics</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change proxy roles</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Clouseau: Debug</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Copy or Move</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Create Transient Objects</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Create class instances</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Define permissions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Delete objects</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Download ExtFile/ExtImage</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Edit Factories</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Edit ReStructuredText</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Edit target</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>FTP access</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Import/Export objects</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Join/leave Versions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List folder contents</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List portal members</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List undoable changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Log Site Errors</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Log to the Event Log</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Mail forgotten password</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Access Rules</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Five local sites</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Groups</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Selenium test cases</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Transient Object Container</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Vocabulary</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage WebDAV Locks</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Z Classes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage ZCatalog Entries</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage ZCatalogIndex Entries</name> + <role>Manager</role> + </permission> + <permission type='list'> + <name>Manage extensions</name> + </permission> + <permission type='tuple'> + <name>Manage languages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage messages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage portal</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage properties</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage users</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Modify Cookie Crumblers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Modify portal content</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Open/Close Database Connection</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Open/Close Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Post mail to ZMailIn</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Query Vocabulary</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Reply to item</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Request review</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Review portal content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Save/discard Version changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Search ZCatalog</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Search for principals</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Set own password</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Set own properties</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Take ownership</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Test Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Translate Content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Undo changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use Database Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use Factories</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use external editor</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use mailhost services</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View History</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View ZMailMessage</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View documentation</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View management screens</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>WebDAV Lock items</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>WebDAV Unlock items</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>WebDAV access</name> + <role>Manager</role> + </permission> + </permission_list> + <portal_type>Budget Model Module</portal_type> + <title>Budget Models</title> +</module> \ No newline at end of file diff --git a/bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/cell.xml b/bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/cell.xml new file mode 100644 index 0000000000..b11f832150 --- /dev/null +++ b/bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/cell.xml @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>budget_variation/cell</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cell</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Cell</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/line.xml b/bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/line.xml new file mode 100644 index 0000000000..d00a9895eb --- /dev/null +++ b/bt5/erp5_budget/PathTemplateItem/portal_categories/budget_variation/line.xml @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>budget_variation/line</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>line</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Line</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_budget/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 4ce063454e..d36ca55649 100644 --- a/bt5/erp5_budget/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_budget/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -6,6 +6,13 @@ <portal_type id="Budget Line"> <item>Budget Cell</item> </portal_type> + <portal_type id="Budget Model"> + <item>Node Budget Variation</item> + <item>Section Category Budget Variation</item> + </portal_type> + <portal_type id="Budget Model Module"> + <item>Budget Model</item> + </portal_type> <portal_type id="Budget Module"> <item>Budget</item> </portal_type> diff --git a/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model%20Module.xml b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model%20Module.xml new file mode 100644 index 0000000000..c0ac77e4c1 --- /dev/null +++ b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model%20Module.xml @@ -0,0 +1,172 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_property_domain_dict</string> </key> + <value> + <dictionary> + <item> + <key> <string>short_title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>folder_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Folder</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>\n + A Folder is a subclass of Base but not of XMLObject.\n + Folders are not considered as documents and are therefore\n + not synchronisable.\n +\n + ERP5 folders are implemented as CMFBTreeFolder objects\n + and can store up to a million documents on a standard\n + computer.\n + ERP5 folders will eventually use in the near future the\n + AdaptableStorage implementation in order to reach performances\n + of 10 or 100 millions of documents in a single folder.\n +\n + ERP5 folders include an automatic id generation feature\n + which allows user not to define an id when they create\n + a new document in a folder.\n +\n + ERP5 folders use the ZSQLCatalog to search for objects\n + or display content. This requires a method called\n + *z_search_folder* to be put inside the ZSQLCatalog object\n + of the ERP5 portal.\n +\n + An ERP5 Binder document class will eventually be defined\n + in order to implement a binder of documents which can itself\n + be categorized.\n + </string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addFolder</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>module</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Budget Model Module</string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_ui</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>short_title</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_ui</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model.xml b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model.xml new file mode 100644 index 0000000000..c133be5d3a --- /dev/null +++ b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Budget%20Model.xml @@ -0,0 +1,103 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>document_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Budget Model</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addBudgetModel</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Budget Model</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Node%20Budget%20Variation.xml b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Node%20Budget%20Variation.xml new file mode 100644 index 0000000000..336d8fccec --- /dev/null +++ b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Node%20Budget%20Variation.xml @@ -0,0 +1,105 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>document_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Node Budget Variation</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addNodeBudgetVariation</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>budget_variation</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Node Budget Variation</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Section%20Category%20Budget%20Variation.xml b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Section%20Category%20Budget%20Variation.xml new file mode 100644 index 0000000000..bca8d043e2 --- /dev/null +++ b/bt5/erp5_budget/PortalTypeTemplateItem/portal_types/Section%20Category%20Budget%20Variation.xml @@ -0,0 +1,105 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>document_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Section Category Budget Variation</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string> </string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addSectionCategoryBudgetVariation</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>budget_variation</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Section Category Budget Variation</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_budget/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 7f11cd9a1f..b9a5c5fb6d 100644 --- a/bt5/erp5_budget/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_budget/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -11,9 +11,13 @@ <type>Budget Line</type> <workflow>budget_line_interaction_workflow, edit_workflow</workflow> </chain> + <chain> + <type>Budget Model</type> + <workflow>edit_workflow, validation_workflow</workflow> + </chain> <chain> <type>Budget Transaction</type> - <workflow>pricing_interaction_workflow, edit_workflow, budget_transaction_workflow</workflow> + <workflow>pricing_interaction_workflow, budget_transaction_workflow, edit_workflow</workflow> </chain> <chain> <type>Budget Transfer</type> @@ -23,4 +27,12 @@ <type>Budget Transfer Line</type> <workflow>edit_workflow</workflow> </chain> + <chain> + <type>Node Budget Variation</type> + <workflow>edit_workflow</workflow> + </chain> + <chain> + <type>Section Category Budget Variation</type> + <workflow>edit_workflow</workflow> + </chain> </workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml index def1212c5c..f990512978 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml @@ -53,80 +53,20 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>"""FIXME: this script uses standard categories, but not membership criterion\n -category list. This assumes that an interaction workflow is copying membership\n -categories into standard categories. Afterall, this might not be needed and we_\n -can probably get them from membership criterion category list.\n -"""\n + <value> <string>kw = dict()\n +budget = context.getParentValue().getParentValue()\n +budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n +if budget_model is not None:\n + kw = budget_model.getInventoryQueryDict(context)\n \n -mcbcl = context.getMembershipCriterionBaseCategoryList() \n +kw.setdefault(\'from_date\', budget.getStartDateRangeMin())\n +at_date = budget.getStartDateRangeMax()\n +if at_date:\n + at_date = at_date.latestTime()\n +kw.setdefault(\'at_date\', at_date)\n \n -kw = dict(\n - src__= src__,\n - from_date=context.getStartDateRangeMin(),\n - at_date=context.getStartDateRangeMax(),\n - simulation_state = [\'delivered\', \'stopped\']\n -)\n -\n -parent = context.getParentValue()\n -\n -# node\n -if \'destination\' in mcbcl:\n - kw[\'node_uid\'] = context.getDestinationUid()\n -\n -\n -# node category\n -if parent.isMemberOf(\n - \'budget_line_variation/budget_variation/node_category_financial_section\'):\n - kw[\'node_category\'] = parent.getFinancialSection(base=1)\n -if parent.isMemberOf(\n - \'budget_line_variation/budget_variation/node_category_budget_section\'):\n - kw[\'stock.function_uid\'] = parent.getBudgetSectionUid()\n - kw[\'node_category\'] = parent.getBudgetSection(base=1)\n -\n -# mirror node\n -if context.getSourceUid():\n - kw[\'mirror_node_uid\'] = context.getSourceUid()\n -\n -# mirror node category\n -\n -# section category\n -if (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/section_category_group\') or\n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/section_category_group\')):\n - kw[\'section_category\'] = context.getGroup(base=1)\n -elif (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/section_category_region\') or\n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/section_category_region\')):\n - kw[\'section_category\'] = context.getRegion(base=1)\n -\n -# mirror section category\n -if (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/mirror_section_category_group\') or \n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/mirror_section_category_group\')):\n - kw[\'mirror_section_category\'] = context.getGroup(base=1)\n -elif (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/mirror_section_category_region\') or \n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/mirror_section_category_region\')):\n - kw[\'mirror_section_category\'] = context.getRegion(base=1)\n -\n -\n -# FIXME: this should be configured on the budget domain\n -#kw[\'node_category\'] = (\'account_type/asset\', \'account_type/expense\')\n -\n -\n -if (parent.isMemberOf(\'budget_cell_variation/budget_variation/budget_line_type\')):\n - if parent.getBudgetLineType() == \'expense\':\n - kw[\'portal_type\'] = [\'Purchase Invoice Transaction Line\', \'Invoice Line\']\n - elif parent.getBudgetLineType() == \'income\':\n - kw[\'portal_type\'] = [\'Sale Invoice Transaction Line\', \'Invoice Line\']\n - return -context.portal_simulation.getInventoryAssetPrice(**kw)\n -\n -return context.portal_simulation.getInventoryAssetPrice(**kw)\n +# XXX use getBudgetConsumptionMethod ?\n +return context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw)\n </string> </value> </item> <item> @@ -164,13 +104,14 @@ return context.portal_simulation.getInventoryAssetPrice(**kw)\n <value> <tuple> <string>src__</string> - <string>_getattr_</string> - <string>context</string> - <string>mcbcl</string> <string>dict</string> <string>kw</string> - <string>parent</string> - <string>_write_</string> + <string>_getattr_</string> + <string>context</string> + <string>budget</string> + <string>budget_model</string> + <string>None</string> + <string>at_date</string> <string>_apply_</string> </tuple> </value> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml index c155c36521..aa5b5dca0f 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml @@ -53,77 +53,24 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>"""FIXME: this script uses standard categories, but not membership criterion\n -category list. This assumes that an interaction workflow is copying membership\n -categories into standard categories. Afterall, this might not be needed and we_\n -can probably get them from membership criterion category list.\n -"""\n + <value> <string>kw = dict()\n +budget = context.getParentValue().getParentValue()\n +budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n +if budget_model is not None:\n + kw = budget_model.getInventoryQueryDict(context)\n \n -consumed_budget = context.BudgetCell_getConsumedBudget()\n +kw.setdefault(\'from_date\', budget.getStartDateRangeMin())\n +at_date = budget.getStartDateRangeMax()\n +if at_date:\n + at_date = at_date.latestTime()\n +kw.setdefault(\'at_date\', at_date)\n \n -mcbcl = context.getMembershipCriterionBaseCategoryList() \n +kw.setdefault(\'explanation_simulation_state\', context.getPortalReservedInventoryStateList() \\\n + + context.getPortalCurrentInventoryStateList() \\\n + + context.getPortalTransitInventoryStateList())\n \n -kw = dict(\n - src__=src__,\n - from_date=context.getStartDateRangeMin(),\n - at_date=context.getStartDateRangeMax(),\n - simulation_state = [\'confirmed\', \'delivered\', \'stopped\', \'started\']\n -)\n -\n -parent = context.getParentValue()\n -\n -# node\n -if \'destination\' in mcbcl:\n - kw[\'node_uid\'] = context.getDestinationUid()\n -\n -# node category\n -if parent.isMemberOf(\n - \'budget_line_variation/budget_variation/node_category_financial_section\'):\n - kw[\'node_category\'] = parent.getFinancialSection(base=1)\n -if parent.isMemberOf(\n - \'budget_line_variation/budget_variation/node_category_budget_section\'):\n - kw[\'stock.function_uid\'] = parent.getBudgetSectionUid() #(base=1)\n - kw[\'node_category\'] = parent.getBudgetSection(base=1)\n -\n -# mirror node\n -if context.getSourceUid():\n - kw[\'mirror_node_uid\'] = context.getSourceUid()\n -\n -# mirror node category\n -\n -# section category\n -if (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/section_category_group\') or\n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/section_category_group\')):\n - kw[\'section_category\'] = context.getGroup(base=1)\n -elif (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/section_category_region\') or\n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/section_category_region\')):\n - kw[\'section_category\'] = context.getRegion(base=1)\n -\n -# mirror section category\n -if (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/mirror_section_category_group\') or \n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/mirror_section_category_group\')):\n - kw[\'mirror_section_category\'] = context.getGroup(base=1)\n -elif (context.isMemberOf(\n - \'budget_cell_variation/budget_variation/mirror_section_category_region\') or \n - context.isMemberOf(\n - \'budget_line_variation/budget_variation/mirror_section_category_region\')):\n - kw[\'mirror_section_category\'] = context.getRegion(base=1)\n -\n -\n -if (parent.isMemberOf(\'budget_cell_variation/budget_variation/budget_line_type\')):\n - if parent.getBudgetLineType() == \'expense\':\n - kw[\'explanation_portal_type\'] = [\'Purchase Order\', \'Purchase Invoice Transaction\', \'Purchase Packing List\']\n - elif parent.getBudgetLineType() == \'income\':\n - kw[\'explanation_portal_type\'] = [\'Sale Order\', \'Sale Invoice Transaction\', \'Sale Packing List\']\n - return -context.portal_simulation.getInventory(**kw) \n -\n -return context.portal_simulation.getInventory(**kw)\n +# XXX use getBudgetConsumptionMethod ?\n +return context.portal_simulation.getInventoryAssetPrice(src__=src__, **kw)\n </string> </value> </item> <item> @@ -161,14 +108,14 @@ return context.portal_simulation.getInventory(**kw)\n <value> <tuple> <string>src__</string> - <string>_getattr_</string> - <string>context</string> - <string>consumed_budget</string> - <string>mcbcl</string> <string>dict</string> <string>kw</string> - <string>parent</string> - <string>_write_</string> + <string>_getattr_</string> + <string>context</string> + <string>budget</string> + <string>budget_model</string> + <string>None</string> + <string>at_date</string> <string>_apply_</string> </tuple> </value> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_asCellRange.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_asCellRange.xml index f2c7f959d9..09cf7d9f2f 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_asCellRange.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_asCellRange.xml @@ -53,57 +53,11 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>traverse = context.getPortalObject().portal_categories.restrictedTraverse\n -\n -cell_range = []\n -base_category_list = context.getVariationBaseCategoryList()\n -\n -\n -def getRangeBaseCategoryFromBudgetLineVariation(budget_line):\n - # Returns the base category to use for cell (XXX ?) if we use nodes member of\n - # the budget line variation category\n - budget_line_variation = context.getBudgetLineVariation()\n - if budget_line_variation == \'budget_variation/node_category_budget_section\':\n - return \'budget_section\'\n - elif budget_line_variation == \'budget_variation/node_category_financial_section\':\n - return \'financial_section\'\n - elif budget_line_variation == \'budget_variation/budget_line_type\':\n - pass\n - else:\n - raise ValueError(\'Unknown budget line variation: %s\' %\n - budget_line_variation)\n -\n -def getTitle(obj):\n - if obj.getPortalType() == \'Account\':\n - return obj.Account_getFormattedTitle()\n - return obj.getTranslatedTitle()\n -\n -for base_category in base_category_list:\n - url_list = context.getVariationCategoryList(base_category_list=(base_category,))\n - if base_category == \'resource\':\n - # we usually ignore resource\n - continue\n - if base_category == \'destination\':\n - # this means we use nodes from category defined in budget line variation\n - budget_line_category = getRangeBaseCategoryFromBudgetLineVariation(context)\n - account_url_list = []\n - for category in context.getVariationCategoryList(\n - base_category_list=(budget_line_category,)):\n - # XXX is it always account portal type ?\n - for account in traverse(category).getRelatedValueList(\n - id=budget_line_category,\n - portal_type=\'Account\',\n - checked_permission=\'View\'):\n - account_url_list.append(\'destination/%s\' % account.getRelativeUrl())\n - url_list = account_url_list\n - # TODO: this can be organisations from current group or something else\n -\n - if matrixbox:\n - cell_range.append([(url, getTitle(traverse(url))) for url in url_list])\n - else:\n - cell_range.append(url_list)\n -\n -return [x for x in cell_range if x != []]\n + <value> <string>budget = context.getParentValue()\n +budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n +if budget_model is not None:\n + return budget_model.getCellRangeForBudgetLine(context, matrixbox=matrixbox)\n +return []\n </string> </value> </item> <item> @@ -154,22 +108,9 @@ return [x for x in cell_range if x != []]\n <string>kw</string> <string>_getattr_</string> <string>context</string> - <string>traverse</string> - <string>cell_range</string> - <string>base_category_list</string> - <string>getRangeBaseCategoryFromBudgetLineVariation</string> - <string>getTitle</string> - <string>_getiter_</string> - <string>base_category</string> - <string>url_list</string> - <string>budget_line_category</string> - <string>account_url_list</string> - <string>category</string> - <string>account</string> - <string>append</string> - <string>$append0</string> - <string>url</string> - <string>x</string> + <string>budget</string> + <string>budget_model</string> + <string>None</string> </tuple> </value> </item> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getVariationRangeCategoryList.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getVariationRangeCategoryList.xml new file mode 100644 index 0000000000..563b3d8793 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getVariationRangeCategoryList.xml @@ -0,0 +1,130 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>budget = context.getParentValue()\n +budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n +if budget_model is not None:\n + return budget_model.getBudgetLineVariationRangeCategoryList(context)\n +\n +return []\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> + <string>context</string> + <string>budget</string> + <string>budget_model</string> + <string>None</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>BudgetLine_getVariationRangeCategoryList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_hashVariationCategoryList.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_hashVariationCategoryList.xml new file mode 100644 index 0000000000..946b1e43d8 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_hashVariationCategoryList.xml @@ -0,0 +1,182 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string># Remove empty items\n +item_list = filter(lambda x: x not in [(\'\',\'\'), [\'\',\'\']],\\\n + item_list)\n +\n +sub_field_dict = {}\n +split_depth = 1\n +\n +resolveCategory = context.getPortalObject().portal_categories.resolveCategory\n +\n +for item in item_list:\n + # Get value of the item\n + item_value = item[int(not is_right_display)]\n +\n + # Hash key from item_value\n + item_split = string.split(item_value, \'/\')\n + item_key = string.join(item_split[:split_depth] , \'/\' )\n + base_category = item_split[0]\n +\n + if not sub_field_dict.has_key(item_key):\n + # Create property dict\n + sub_field_property_dict = default_sub_field_property_dict.copy()\n + sub_field_property_dict[\'key\'] = item_key\n + sub_field_property_dict[\'required\'] = 0\n + sub_field_property_dict[\'field_type\'] = \'MultiListField\'\n + sub_field_property_dict[\'size\'] = 5\n + sub_field_property_dict[\'item_list\'] = [(\'\',\'\')]\n + sub_field_property_dict[\'value\'] = []\n + sub_field_dict[item_key] = sub_field_property_dict\n +\n + sub_field_dict[item_key][\'item_list\'] =\\\n + sub_field_dict[item_key][\'item_list\'] + [item]\n + if item_value in value_list:\n + sub_field_dict[item_key][\'value\'] =\\\n + sub_field_dict[item_key][\'value\'] + [item_value]\n +\n + \n + sub_field_dict[item_key][\'title\'] = resolveCategory(base_category).getTranslatedTitle()\n +\n +return sub_field_dict.values()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>item_list, value_list, default_sub_field_property_dict={}, is_right_display=0</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>item_list</string> + <string>value_list</string> + <string>default_sub_field_property_dict</string> + <string>is_right_display</string> + <string>filter</string> + <string>sub_field_dict</string> + <string>split_depth</string> + <string>_getattr_</string> + <string>context</string> + <string>resolveCategory</string> + <string>_getiter_</string> + <string>item</string> + <string>_getitem_</string> + <string>int</string> + <string>item_value</string> + <string>string</string> + <string>item_split</string> + <string>item_key</string> + <string>base_category</string> + <string>sub_field_property_dict</string> + <string>_write_</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <dictionary/> + <int>0</int> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>BudgetLine_hashVariationCategoryList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_init.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_init.xml index 634697191d..7e2a051e14 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_init.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_init.xml @@ -53,48 +53,10 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>variation_base_category_list = [\'resource\']\n -\n -if context.isMemberOf(\'budget_cell_variation/budget_variation/node_from_node_category\'):\n - variation_base_category_list.append(\'destination\') # XXX will it be enough ? can we have conflicts ?\n -\n -if context.isMemberOf(\'budget_cell_variation/budget_variation/section_category_group\'):\n - variation_base_category_list.append(\'group\')\n -\n -if context.isMemberOf(\'budget_cell_variation/budget_variation/mirror_section_category_region\'):\n - variation_base_category_list.append(\'region\')\n -\n -if context.isMemberOf(\'budget_cell_variation/budget_variation/section_category_region\'):\n - variation_base_category_list.append(\'region\')\n -\n -if context.isMemberOf(\'budget_cell_variation/budget_variation/node_category_budget_section\'):\n - variation_base_category_list.append(\'budget_section\')\n -\n -if context.isMemberOf(\'budget_cell_variation/budget_variation/node_category_financial_section\'):\n - variation_base_category_list.append(\'financial_section\')\n -\n -\n -\n -if context.isMemberOf(\'budget_line_variation/budget_variation/node_from_node_category\'):\n - variation_base_category_list.append(\'destination\') # XXX will it be enough ? can we have conflicts ?\n -\n -if context.isMemberOf(\'budget_line_variation/budget_variation/section_category_group\'):\n - variation_base_category_list.append(\'group\')\n -\n -if context.isMemberOf(\'budget_line_variation/budget_variation/mirror_section_category_region\'):\n - variation_base_category_list.append(\'region\')\n -\n -if context.isMemberOf(\'budget_line_variation/budget_variation/section_category_region\'):\n - variation_base_category_list.append(\'region\')\n -\n -if context.isMemberOf(\'budget_line_variation/budget_variation/node_category_budget_section\'):\n - variation_base_category_list.append(\'budget_section\')\n -\n -if context.isMemberOf(\'budget_line_variation/budget_variation/node_category_financial_section\'):\n - variation_base_category_list.append(\'financial_section\')\n -\n -\n -context.setVariationBaseCategoryList(variation_base_category_list)\n + <value> <string>budget = context.getParentValue()\n +budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n +if budget_model is not None:\n + return budget_model.initializeBudgetLine(context)\n </string> </value> </item> <item> @@ -133,9 +95,11 @@ context.setVariationBaseCategoryList(variation_base_category_list)\n <tuple> <string>args</string> <string>kw</string> - <string>variation_base_category_list</string> <string>_getattr_</string> <string>context</string> + <string>budget</string> + <string>budget_model</string> + <string>None</string> </tuple> </value> </item> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view.xml index 4d2f5c5b04..d5fcacc1fb 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view.xml @@ -96,9 +96,6 @@ <value> <list> <string>my_title</string> - <string>my_financial_section</string> - <string>my_budget_section</string> - <string>my_group</string> <string>your_total_initial_budget</string> </list> </value> @@ -107,9 +104,7 @@ <key> <string>right</string> </key> <value> <list> - <string>my_group_list</string> - <string>my_region_list</string> - <string>my_financial_section_list</string> + <string>my_variation_category_list</string> <string>my_budget_line_type</string> </list> </value> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/matrixbox_membership_criterion_category_list.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/matrixbox_membership_criterion_category_list.xml index 17977ce895..e3d1b024db 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/matrixbox_membership_criterion_category_list.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/matrixbox_membership_criterion_category_list.xml @@ -115,7 +115,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: context.log(cell_index) and cell_index + (context.getResource(base=1),) # XXX make this in a script ? or interaction workflow ?</string> </value> + <value> <string>python: list(cell_index) + [context.getResource(base=1),] # XXX make this in a script ? or interaction workflow ?</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_line_type.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_line_type.xml index 45ee1062b5..9fd87f9a01 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_line_type.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_line_type.xml @@ -122,7 +122,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: here.isMemberOf(\'budget_cell_variation/budget_variation/budget_line_type\')</string> </value> + <value> <string>python: len(here.portal_categories.budget_line_type)</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section_list.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section_list.xml deleted file mode 100644 index fb43f052d6..0000000000 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section_list.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>delegated_list</string> </key> - <value> - <list> - <string>title</string> - <string>items</string> - <string>enabled</string> - </list> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>my_financial_section_list</string> </value> - </item> - <item> - <key> <string>message_values</string> </key> - <value> - <dictionary> - <item> - <key> <string>external_validator_failed</string> </key> - <value> <string>The input failed the external validator.</string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>overrides</string> </key> - <value> - <dictionary> - <item> - <key> <string>field_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>tales</string> </key> - <value> - <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>field_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>items</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> - </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>values</string> </key> - <value> - <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string>Base_viewFieldLibrary</string> </value> - </item> - <item> - <key> <string>items</string> </key> - <value> - <list/> - </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string>Click to edit the target</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Financial Section</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </pickle> - </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.isMemberOf(\'budget_cell_variation/budget_variation/node_category_financial_section\')</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: getattr(here.portal_categories[field.getId().replace(\'my_\', \'\', 1).replace(\'_list\', \'\')], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group_list.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group_list.xml deleted file mode 100644 index c4a3c41f94..0000000000 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group_list.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>delegated_list</string> </key> - <value> - <list> - <string>title</string> - <string>items</string> - <string>enabled</string> - </list> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>my_group_list</string> </value> - </item> - <item> - <key> <string>message_values</string> </key> - <value> - <dictionary> - <item> - <key> <string>external_validator_failed</string> </key> - <value> <string>The input failed the external validator.</string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>overrides</string> </key> - <value> - <dictionary> - <item> - <key> <string>field_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>tales</string> </key> - <value> - <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>field_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>items</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> - </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>values</string> </key> - <value> - <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string>Base_viewFieldLibrary</string> </value> - </item> - <item> - <key> <string>items</string> </key> - <value> - <list/> - </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string>Click to edit the target</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Group</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </pickle> - </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.isMemberOf(\'budget_cell_variation/budget_variation/section_category_group\')</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: getattr(here.portal_categories[field.getId().replace(\'my_\', \'\', 1).replace(\'_list\', \'\')], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_variation_category_list.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_variation_category_list.xml new file mode 100644 index 0000000000..c52c489322 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_variation_category_list.xml @@ -0,0 +1,319 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ParallelListField" module="Products.ERP5Form.ParallelListField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_variation_category_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>unknown_selection</string> </key> + <value> <string>You selected an item that was not in the list.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hash_script_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hash_script_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>hash_script_id</string> </key> + <value> <string>BudgetLine_hashVariationCategoryList</string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Variation Category</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getVariationCategoryList</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/BudgetLine_getVariationRangeCategoryList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList.xml new file mode 100644 index 0000000000..bb0ba8d726 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList.xml @@ -0,0 +1,151 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_doSelect</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>BudgetModelModule_viewBudgetModelList</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>BudgetModelModule_viewBudgetModelList</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_list</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Budget Models</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_section.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList/listbox.xml similarity index 73% rename from bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_section.xml rename to bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList/listbox.xml index 0f8376239c..e8c9352866 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_budget_section.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModelModule_viewBudgetModelList/listbox.xml @@ -13,14 +13,15 @@ <key> <string>delegated_list</string> </key> <value> <list> + <string>portal_type</string> + <string>selection_name</string> <string>title</string> - <string>enabled</string> </list> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>my_budget_section</string> </value> + <value> <string>listbox</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -56,12 +57,6 @@ <key> <string>tales</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -74,10 +69,6 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> </dictionary> </value> </item> @@ -85,25 +76,36 @@ <key> <string>values</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> - </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_category</string> </value> + <value> <string>my_list_mode_listbox</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Budget Model</string> + <string>Budget Model</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>budget_model_module_selection</string> </value> + </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> <item> <key> <string>title</string> </key> - <value> <string>Budget Section</string> </value> + <value> <string>Budget Models</string> </value> </item> </dictionary> </value> @@ -111,20 +113,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.isMemberOf(\'budget_line_variation/budget_variation/node_category_budget_section\')</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view.xml new file mode 100644 index 0000000000..0c1a876430 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view.xml @@ -0,0 +1,155 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list> + <string>my_description</string> + </list> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_title</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>BudgetModel_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>BudgetModel_view</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Budget Model</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/listbox.xml similarity index 74% rename from bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group.xml rename to bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/listbox.xml index 0c6c2834df..d31fd547b9 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_group.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/listbox.xml @@ -14,13 +14,14 @@ <value> <list> <string>title</string> - <string>enabled</string> + <string>columns</string> + <string>selection_name</string> </list> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>my_group</string> </value> + <value> <string>listbox</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -56,12 +57,6 @@ <key> <string>tales</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -74,10 +69,6 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> </dictionary> </value> </item> @@ -86,24 +77,43 @@ <value> <dictionary> <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>int_index</string> + <string>Order</string> + </tuple> + <tuple> + <string>translated_portal_type</string> + <string>Type</string> + </tuple> + </list> + </value> </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_category</string> </value> + <value> <string>my_view_mode_listbox</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>budget_model_selection</string> </value> + </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> <item> <key> <string>title</string> </key> - <value> <string>Group</string> </value> + <value> <string>Budget Variations</string> </value> </item> </dictionary> </value> @@ -111,20 +121,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.isMemberOf(\'budget_line_variation/budget_variation/section_category_group\')</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_description.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_description.xml new file mode 100644 index 0000000000..07dc3bb171 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_description.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_title.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_title.xml new file mode 100644 index 0000000000..ea78bd553c --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetModel_view/my_title.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_getAccountList.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_getAccountList.xml new file mode 100644 index 0000000000..bb6fdfff2d --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_getAccountList.xml @@ -0,0 +1,136 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>def sort_method(a, b):\n + return cmp(a.Account_getFormattedTitle(),\n + b.Account_getFormattedTitle())\n +\n +account_list = [a.getObject() for a in context.getPortalObject().account_module.searchFolder(\n + validation_state=\'validated\')]\n +\n +account_list.sort(sort_method)\n +return account_list\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>sort_method</string> + <string>append</string> + <string>$append0</string> + <string>_getiter_</string> + <string>_getattr_</string> + <string>context</string> + <string>a</string> + <string>account_list</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Budget_getAccountList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view.xml index d543483524..d8bd9b0548 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view.xml @@ -95,6 +95,7 @@ <string>my_budget_line_variation</string> <string>my_budget_cell_variation_list</string> <string>my_budget_type</string> + <string>my_specialise_title</string> </list> </value> </item> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view/my_specialise_title.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view/my_specialise_title.xml new file mode 100644 index 0000000000..1ff9a08e7a --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_view/my_specialise_title.xml @@ -0,0 +1,552 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="RelationStringField" module="Products.ERP5Form.RelationField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_specialise_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>relation_result_ambiguous</string> </key> + <value> <string>Select appropriate document in the list.</string> </value> + </item> + <item> + <key> <string>relation_result_empty</string> </key> + <value> <string>No such document was found.</string> </value> + </item> + <item> + <key> <string>relation_result_too_long</string> </key> + <value> <string>Too many documents were found.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>base_category</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>catalog_index</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>container_getter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>jump_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>parameter_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_setter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>base_category</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>catalog_index</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>container_getter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>jump_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>parameter_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_setter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>base_category</string> </key> + <value> <string>specialise</string> </value> + </item> + <item> + <key> <string>catalog_index</string> </key> + <value> <string>title</string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>container_getter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>jump_method</string> </key> + <value> <string>Base_jumpToRelatedDocument</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>parameter_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Budget Model</string> + <string>Budget Model</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>proxy_listbox_ids</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>relation_form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_setter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Budget Model</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_method</string> </key> + <value> <string>Base_validateRelation</string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view.xml new file mode 100644 index 0000000000..e1f738eb34 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view.xml @@ -0,0 +1,157 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_title</string> + <string>my_int_index</string> + <string>my_translated_portal_type</string> + <string>my_budget_variation</string> + <string>my_variation_base_category</string> + <string>my_node_select_method_id</string> + <string>my_node_title_method_id</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>NodeBudgetVariation_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>SectionCategoryBudgetVariation_view</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Section Category Budget Variation</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_budget_variation.xml similarity index 71% rename from bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section.xml rename to bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_budget_variation.xml index 30480785bf..1d6ee222a3 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_financial_section.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_budget_variation.xml @@ -14,13 +14,12 @@ <value> <list> <string>title</string> - <string>enabled</string> </list> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>my_financial_section</string> </value> + <value> <string>my_budget_variation</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -56,12 +55,6 @@ <key> <string>tales</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -74,10 +67,6 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> </dictionary> </value> </item> @@ -85,10 +74,6 @@ <key> <string>values</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> - </item> <item> <key> <string>field_id</string> </key> <value> <string>my_category</string> </value> @@ -103,7 +88,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Financial Section</string> </value> + <value> <string>Budget Variation</string> </value> </item> </dictionary> </value> @@ -111,20 +96,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.isMemberOf(\'budget_line_variation/budget_variation/node_category_financial_section\')</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_int_index.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_int_index.xml new file mode 100644 index 0000000000..db38864bc1 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_int_index.xml @@ -0,0 +1,255 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="IntegerField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_int_index</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>integer_out_of_range</string> </key> + <value> <string>The integer you entered was out of range.</string> </value> + </item> + <item> + <key> <string>not_integer</string> </key> + <value> <string>You did not enter an integer.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>end</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>start</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>end</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>start</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>end</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>start</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Order</string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_select_method_id.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_select_method_id.xml new file mode 100644 index 0000000000..10e5a83e49 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_select_method_id.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_node_select_method_id</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Name of a script or a method that should return the list of lines</string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Select Method ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_title_method_id.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_title_method_id.xml new file mode 100644 index 0000000000..19a0fa7d26 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_node_title_method_id.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_node_title_method_id</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string>getTitle</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Name of a script or a method that displays a title for the node</string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Display Method ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_title.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_title.xml new file mode 100644 index 0000000000..6b82ce9ff2 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_title.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Title</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_translated_portal_type.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_translated_portal_type.xml new file mode 100644 index 0000000000..e5e542bb59 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_translated_portal_type.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_translated_portal_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Type</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_variation_base_category.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_variation_base_category.xml new file mode 100644 index 0000000000..1b6fb5395e --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/NodeBudgetVariation_view/my_variation_base_category.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_variation_base_category</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Base Category</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view.xml new file mode 100644 index 0000000000..0073e0a49e --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view.xml @@ -0,0 +1,155 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_title</string> + <string>my_int_index</string> + <string>my_translated_portal_type</string> + <string>my_budget_variation</string> + <string>my_variation_base_category_list</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>SectionCategoryBudgetVariation_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>SectionCategoryBudgetVariation_view</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Section Category Budget Variation</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_region_list.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_budget_variation.xml similarity index 55% rename from bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_region_list.xml rename to bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_budget_variation.xml index 70094d32d7..1d6ee222a3 100644 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_view/my_region_list.xml +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_budget_variation.xml @@ -14,14 +14,12 @@ <value> <list> <string>title</string> - <string>items</string> - <string>enabled</string> </list> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>my_region_list</string> </value> + <value> <string>my_budget_variation</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -57,12 +55,6 @@ <key> <string>tales</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -71,20 +63,10 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>items</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> - </value> - </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> </dictionary> </value> </item> @@ -92,31 +74,21 @@ <key> <string>values</string> </key> <value> <dictionary> - <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> - </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> + <value> <string>my_category</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> - <item> - <key> <string>items</string> </key> - <value> - <list/> - </value> - </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> <item> <key> <string>title</string> </key> - <value> <string>Region</string> </value> + <value> <string>Budget Variation</string> </value> </item> </dictionary> </value> @@ -124,36 +96,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: (\'region\' in context.getVariationBaseCategoryList())</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: getattr(here.portal_categories[field.getId().replace(\'my_\', \'\', 1).replace(\'_list\', \'\')], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_int_index.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_int_index.xml new file mode 100644 index 0000000000..db38864bc1 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_int_index.xml @@ -0,0 +1,255 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="IntegerField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_int_index</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>integer_out_of_range</string> </key> + <value> <string>The integer you entered was out of range.</string> </value> + </item> + <item> + <key> <string>not_integer</string> </key> + <value> <string>You did not enter an integer.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>end</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>start</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>end</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>start</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>end</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>start</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Order</string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_title.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_title.xml new file mode 100644 index 0000000000..6b82ce9ff2 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_title.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Title</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_translated_portal_type.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_translated_portal_type.xml new file mode 100644 index 0000000000..e5e542bb59 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_translated_portal_type.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_translated_portal_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Type</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_variation_base_category_list.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_variation_base_category_list.xml new file mode 100644 index 0000000000..c5840bc092 --- /dev/null +++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/SectionCategoryBudgetVariation_view/my_variation_base_category_list.xml @@ -0,0 +1,301 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="LinesField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_variation_base_category_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Base Categories</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/setGroup.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/setVariationCategoryList.xml similarity index 94% rename from bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/setGroup.xml rename to bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/setVariationCategoryList.xml index 3e96234507..55053fffba 100644 --- a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/setGroup.xml +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_line_interaction_workflow/interactions/setVariationCategoryList.xml @@ -47,13 +47,13 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>setGroup</string> </value> + <value> <string>setVariationCategoryList</string> </value> </item> <item> <key> <string>method_id</string> </key> <value> <list> - <string>_set.*</string> + <string>_setVariationCategoryList</string> </list> </value> </item> diff --git a/bt5/erp5_budget/bt/change_log b/bt5/erp5_budget/bt/change_log index 1f4aaccc4f..f14e38add3 100644 --- a/bt5/erp5_budget/bt/change_log +++ b/bt5/erp5_budget/bt/change_log @@ -1,3 +1,6 @@ +2000-01-08 jerome +Introduce budget models + 2008-09-29 fabrice *Add budget_cell_interaction_workflow * Add the engaged budget tab on Budget Line views diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision index 89a16a7ddc..7b27b25197 100644 --- a/bt5/erp5_budget/bt/revision +++ b/bt5/erp5_budget/bt/revision @@ -1 +1 @@ -172 \ No newline at end of file +173 \ No newline at end of file diff --git a/bt5/erp5_budget/bt/template_action_path_list b/bt5/erp5_budget/bt/template_action_path_list index f10ea7f72a..e81f6b3265 100644 --- a/bt5/erp5_budget/bt/template_action_path_list +++ b/bt5/erp5_budget/bt/template_action_path_list @@ -5,6 +5,8 @@ Budget Line | consumed_view Budget Line | current_view Budget Line | engaged_view Budget Line | initial_view +Budget Model Module | view +Budget Model | view Budget Module | view Budget Transaction Module | view Budget Transaction | view @@ -13,4 +15,6 @@ Budget Transfer | view Budget | generate_structure Budget | original_budget Budget | transfer_line_list_view -Budget | view \ No newline at end of file +Budget | view +Node Budget Variation | view +Section Category Budget Variation | view \ No newline at end of file diff --git a/bt5/erp5_budget/bt/template_module_id_list b/bt5/erp5_budget/bt/template_module_id_list index e3c5dd4c60..7d38c4f027 100644 --- a/bt5/erp5_budget/bt/template_module_id_list +++ b/bt5/erp5_budget/bt/template_module_id_list @@ -1,2 +1,3 @@ +budget_model_module budget_module budget_transaction_module \ No newline at end of file diff --git a/bt5/erp5_budget/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_budget/bt/template_portal_type_allowed_content_type_list index 3832e63993..f07011dbc8 100644 --- a/bt5/erp5_budget/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_budget/bt/template_portal_type_allowed_content_type_list @@ -1,4 +1,7 @@ Budget Line | Budget Cell +Budget Model Module | Budget Model +Budget Model | Node Budget Variation +Budget Model | Section Category Budget Variation Budget Module | Budget Budget Transaction Module | Budget Transaction Budget Transfer | Budget Transfer Line diff --git a/bt5/erp5_budget/bt/template_portal_type_id_list b/bt5/erp5_budget/bt/template_portal_type_id_list index 30a6886e36..28197470f7 100644 --- a/bt5/erp5_budget/bt/template_portal_type_id_list +++ b/bt5/erp5_budget/bt/template_portal_type_id_list @@ -1,8 +1,12 @@ Budget Budget Cell Budget Line +Budget Model +Budget Model Module Budget Module Budget Transaction Budget Transaction Module Budget Transfer -Budget Transfer Line \ No newline at end of file +Budget Transfer Line +Node Budget Variation +Section Category Budget Variation \ No newline at end of file diff --git a/bt5/erp5_budget/bt/template_portal_type_workflow_chain_list b/bt5/erp5_budget/bt/template_portal_type_workflow_chain_list index f6c9d8eb2a..8bd481b117 100644 --- a/bt5/erp5_budget/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_budget/bt/template_portal_type_workflow_chain_list @@ -2,10 +2,14 @@ Budget Cell | budget_cell_interaction_workflow Budget Cell | edit_workflow Budget Line | budget_line_interaction_workflow Budget Line | edit_workflow +Budget Model | edit_workflow +Budget Model | validation_workflow Budget Transaction | budget_transaction_workflow Budget Transaction | edit_workflow Budget Transaction | pricing_interaction_workflow Budget Transfer Line | edit_workflow Budget Transfer | edit_workflow Budget | budget_workflow -Budget | edit_workflow \ No newline at end of file +Budget | edit_workflow +Node Budget Variation | edit_workflow +Section Category Budget Variation | edit_workflow \ No newline at end of file -- 2.30.9