Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
adcb959e
Commit
adcb959e
authored
Sep 15, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
Arrow categories types
See merge request
nexedi/erp5!1665
parents
93a0f39f
1e4be3b4
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
115 additions
and
57 deletions
+115
-57
bt5/erp5_base/CategoryTemplateItem/portal_categories/destination_carrier.xml
...oryTemplateItem/portal_categories/destination_carrier.xml
+3
-1
bt5/erp5_base/CategoryTemplateItem/portal_categories/destination_referral.xml
...ryTemplateItem/portal_categories/destination_referral.xml
+3
-1
bt5/erp5_base/CategoryTemplateItem/portal_categories/source_carrier.xml
...CategoryTemplateItem/portal_categories/source_carrier.xml
+8
-0
bt5/erp5_base/CategoryTemplateItem/portal_categories/source_referral.xml
...ategoryTemplateItem/portal_categories/source_referral.xml
+8
-0
bt5/erp5_trade/DocumentTemplateItem/portal_components/document.erp5.TradeModelPath.py
...ateItem/portal_components/document.erp5.TradeModelPath.py
+2
-32
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+16
-0
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination.xml
...re/CategoryTemplateItem/portal_categories/destination.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_account.xml
...oryTemplateItem/portal_categories/destination_account.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_administration.xml
...lateItem/portal_categories/destination_administration.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_decision.xml
...ryTemplateItem/portal_categories/destination_decision.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_function.xml
...ryTemplateItem/portal_categories/destination_function.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_funding.xml
...oryTemplateItem/portal_categories/destination_funding.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_payment.xml
...oryTemplateItem/portal_categories/destination_payment.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_payment_request.xml
...ateItem/portal_categories/destination_payment_request.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_project.xml
...oryTemplateItem/portal_categories/destination_project.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_section.xml
...oryTemplateItem/portal_categories/destination_section.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_trade.xml
...egoryTemplateItem/portal_categories/destination_trade.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source.xml
...p5_core/CategoryTemplateItem/portal_categories/source.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_account.xml
...CategoryTemplateItem/portal_categories/source_account.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_administration.xml
...yTemplateItem/portal_categories/source_administration.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_decision.xml
...ategoryTemplateItem/portal_categories/source_decision.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_function.xml
...ategoryTemplateItem/portal_categories/source_function.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_funding.xml
...CategoryTemplateItem/portal_categories/source_funding.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_payment.xml
...CategoryTemplateItem/portal_categories/source_payment.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_payment_request.xml
...TemplateItem/portal_categories/source_payment_request.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_project.xml
...CategoryTemplateItem/portal_categories/source_project.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_section.xml
...CategoryTemplateItem/portal_categories/source_section.xml
+3
-1
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_trade.xml
...e/CategoryTemplateItem/portal_categories/source_trade.xml
+3
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseCategory_view/my_category_type_list.xml
...ins/erp5_core/BaseCategory_view/my_category_type_list.xml
+9
-1
No files found.
bt5/erp5_base/CategoryTemplateItem/portal_categories/destination_carrier.xml
View file @
adcb959e
...
@@ -52,7 +52,9 @@
...
@@ -52,7 +52,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_base/CategoryTemplateItem/portal_categories/destination_referral.xml
View file @
adcb959e
...
@@ -53,7 +53,9 @@
...
@@ -53,7 +53,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_base/CategoryTemplateItem/portal_categories/source_carrier.xml
View file @
adcb959e
...
@@ -27,6 +27,14 @@
...
@@ -27,6 +27,14 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
category_type
</string>
</key>
<value>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<value>
...
...
bt5/erp5_base/CategoryTemplateItem/portal_categories/source_referral.xml
View file @
adcb959e
...
@@ -28,6 +28,14 @@
...
@@ -28,6 +28,14 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
category_type
</string>
</key>
<value>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<value>
...
...
bt5/erp5_trade/DocumentTemplateItem/portal_components/document.erp5.TradeModelPath.py
View file @
adcb959e
...
@@ -114,22 +114,7 @@ class TradeModelPath(Path):
...
@@ -114,22 +114,7 @@ class TradeModelPath(Path):
Returns all categories which are used to define the source
Returns all categories which are used to define the source
of this Arrow
of this Arrow
"""
"""
# Naive implementation - we must use category groups instead - XXX
return
self
.
getPortalObject
().
getPortalSourceArrowBaseCategoryList
()
return
(
'source'
,
'source_account'
,
'source_administration'
,
#'source_advice',
'source_carrier'
,
'source_decision'
,
'source_function'
,
'source_funding'
,
'source_payment'
,
'source_project'
,
'source_referral'
,
'source_section'
,
'source_trade'
,
#'source_transport'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getDestinationArrowBaseCategoryList'
)
'getDestinationArrowBaseCategoryList'
)
...
@@ -138,22 +123,7 @@ class TradeModelPath(Path):
...
@@ -138,22 +123,7 @@ class TradeModelPath(Path):
Returns all categories which are used to define the destination
Returns all categories which are used to define the destination
of this Arrow
of this Arrow
"""
"""
# Naive implementation - we must use category groups instead - XXX-JPS review this later
return
self
.
getPortalObject
().
getPortalDestinationArrowBaseCategoryList
()
return
(
'destination'
,
'destination_account'
,
'destination_administration'
,
#'destination_advice',
#'destination_carrier',
'destination_decision'
,
'destination_function'
,
'destination_funding'
,
'destination_payment'
,
'destination_project'
,
'destination_referral'
,
'destination_section'
,
'destination_trade'
,
#'destination_transport'
)
# XXX-JPS UNkonwn ?
# XXX-JPS UNkonwn ?
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
...
...
product/ERP5/ERP5Site.py
View file @
adcb959e
...
@@ -938,6 +938,22 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, PortalObjectBase, CacheCook
...
@@ -938,6 +938,22 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, PortalObjectBase, CacheCook
"""
"""
return
self
.
_getPortalGroupedCategoryList
(
'sub_variation'
)
return
self
.
_getPortalGroupedCategoryList
(
'sub_variation'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalSourceArrowBaseCategoryList'
)
def
getPortalSourceArrowBaseCategoryList
(
self
):
"""
Return source arrow base categories.
"""
return
self
.
_getPortalGroupedCategoryList
(
'source_arrow'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalDestinationArrowBaseCategoryList'
)
def
getPortalDestinationArrowBaseCategoryList
(
self
):
"""
Return destination arrow base categories.
"""
return
self
.
_getPortalGroupedCategoryList
(
'destination_arrow'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalVariationTypeList'
)
'getPortalVariationTypeList'
)
def
getPortalVariationTypeList
(
self
):
def
getPortalVariationTypeList
(
self
):
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination.xml
View file @
adcb959e
...
@@ -68,7 +68,9 @@
...
@@ -68,7 +68,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_account.xml
View file @
adcb959e
...
@@ -52,7 +52,9 @@
...
@@ -52,7 +52,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_administration.xml
View file @
adcb959e
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_decision.xml
View file @
adcb959e
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_function.xml
View file @
adcb959e
...
@@ -70,7 +70,9 @@
...
@@ -70,7 +70,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_funding.xml
View file @
adcb959e
...
@@ -118,7 +118,9 @@
...
@@ -118,7 +118,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_payment.xml
View file @
adcb959e
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_payment_request.xml
View file @
adcb959e
...
@@ -119,7 +119,9 @@
...
@@ -119,7 +119,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_project.xml
View file @
adcb959e
...
@@ -71,7 +71,9 @@
...
@@ -71,7 +71,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_section.xml
View file @
adcb959e
...
@@ -68,7 +68,9 @@
...
@@ -68,7 +68,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/destination_trade.xml
View file @
adcb959e
...
@@ -71,7 +71,9 @@
...
@@ -71,7 +71,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
destination_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source.xml
View file @
adcb959e
...
@@ -115,7 +115,9 @@
...
@@ -115,7 +115,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_account.xml
View file @
adcb959e
...
@@ -53,7 +53,9 @@
...
@@ -53,7 +53,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_administration.xml
View file @
adcb959e
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_decision.xml
View file @
adcb959e
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_function.xml
View file @
adcb959e
...
@@ -70,7 +70,9 @@
...
@@ -70,7 +70,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_funding.xml
View file @
adcb959e
...
@@ -118,7 +118,9 @@
...
@@ -118,7 +118,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_payment.xml
View file @
adcb959e
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_payment_request.xml
View file @
adcb959e
...
@@ -119,7 +119,9 @@
...
@@ -119,7 +119,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_project.xml
View file @
adcb959e
...
@@ -118,7 +118,9 @@
...
@@ -118,7 +118,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_section.xml
View file @
adcb959e
...
@@ -68,7 +68,9 @@
...
@@ -68,7 +68,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/source_trade.xml
View file @
adcb959e
...
@@ -72,7 +72,9 @@
...
@@ -72,7 +72,9 @@
<item>
<item>
<key>
<string>
category_type
</string>
</key>
<key>
<string>
category_type
</string>
</key>
<value>
<value>
<tuple/>
<tuple>
<string>
source_arrow
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseCategory_view/my_category_type_list.xml
View file @
adcb959e
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
<key>
<string>
delegated_list
</string>
</key>
<key>
<string>
delegated_list
</string>
</key>
<value>
<value>
<list>
<list>
<string>
title
</string>
<string>
items
</string>
<string>
items
</string>
<string>
size
</string>
<string>
size
</string>
<string>
title
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -113,6 +113,14 @@
...
@@ -113,6 +113,14 @@
<string>
sub_variation
</string>
<string>
sub_variation
</string>
<string>
sub_variation
</string>
<string>
sub_variation
</string>
</tuple>
</tuple>
<tuple>
<string>
Source Arrow
</string>
<string>
source_arrow
</string>
</tuple>
<tuple>
<string>
Destination Arrow
</string>
<string>
destination_arrow
</string>
</tuple>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment