Commit 2cb67f14 authored by Jean-Paul Smets's avatar Jean-Paul Smets

New groups added as well as explanation of a better way to implement this.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13336 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc73fe94
...@@ -147,13 +147,39 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -147,13 +147,39 @@ class ERP5TypeInformation( FactoryTypeInformation,
permission = '' permission = ''
# Groups are used to classify portal types (e.g. resource). # Groups are used to classify portal types (e.g. resource).
# IMPLEMENTATION NOTE
# The current implementation is practical but not modular at all
# Providing extensible document groups will be desirable at some point
# Implementation could consist for example in allowing to define
# the list of groups at the level of ERP5Site either
# with a default value or with a user specified value. Accessors
# to portal type groups should then be generated dynamically through
# _aq_dynamic. This would provide limitless group definition.
# The main issue in providing too much flexibility at this level
# is to reduce standardisation. New groups should therefore be handled
# with great care.
defined_group_list = ( defined_group_list = (
'accounting_transaction', 'accounting_movement', 'alarm', # Framework
'balance_transaction_line', 'container', 'container_line', 'delivery', 'alarm',
'delivery_movement', 'discount', 'invoice', 'invoice_movement', 'item', # ERP5 UBM (5 Classes)
'order', 'order_movement', 'node', 'payment_node', 'payment_condition', 'resource', 'node', 'item',
'resource', 'supply', 'supply_path', 'transformation', 'variation', 'delivery', 'delivery_movement',
'sub_variation', 'event', 'ticket', 'document', 'web_document', 'order', 'order_movement',
'container', 'container_line',
# Trade
'discount', 'payment_condition', 'payment_node',
'supply', 'supply_path',
# PDM
'transformation', 'variation', 'sub_variation',
# Accounting
'accounting_transaction', 'accounting_movement',
'invoice', 'invoice_movement', 'balance_transaction_line',
# CRM
'event', 'ticket',
# DMS
'document', 'web_document', 'file_document',
'recent_document', 'my_document', 'template_document',
# MRP
'divergence_tester', 'calendar_period' 'divergence_tester', 'calendar_period'
) )
group_list = () group_list = ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment