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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
0c0fa0d2
Commit
0c0fa0d2
authored
Oct 22, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Catalog: fix ZMI view of catalog switching to ERP5 view
parent
45b72215
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
product/ERP5/Document/SQLMethod.py
product/ERP5/Document/SQLMethod.py
+4
-3
product/ERP5Catalog/Document/ERP5Catalog.py
product/ERP5Catalog/Document/ERP5Catalog.py
+2
-2
product/ERP5Catalog/Tool/ERP5CatalogTool.py
product/ERP5Catalog/Tool/ERP5CatalogTool.py
+2
-2
No files found.
product/ERP5/Document/SQLMethod.py
View file @
0c0fa0d2
...
@@ -79,9 +79,10 @@ class SQLMethod(XMLObject, ZSQL, ExpressionMixin):
...
@@ -79,9 +79,10 @@ class SQLMethod(XMLObject, ZSQL, ExpressionMixin):
manage
=
manage_main
=
ZSQL
.
manage
manage
=
manage_main
=
ZSQL
.
manage
manage_main
.
_setName
(
'manage_main'
)
manage_main
.
_setName
(
'manage_main'
)
# View content list, Force /view, Standard option in SQLMethod
# View content list, replace /view, Standard option in SQLMethod
manage_options
=
({
'icon'
:
''
,
'label'
:
'View'
,
'action'
:
'view'
},)
\
manage_options
=
(
ZSQL
.
manage_options
[
0
],
)
+
\
+
ZSQL
.
manage_options
({
'icon'
:
''
,
'label'
:
'View'
,
'action'
:
'view'
},)
+
\
ZSQL
.
manage_options
[
2
:]
# Declarative properties
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
property_sheets
=
(
PropertySheet
.
Base
...
...
product/ERP5Catalog/Document/ERP5Catalog.py
View file @
0c0fa0d2
...
@@ -151,8 +151,8 @@ class ERP5Catalog(Folder, Catalog):
...
@@ -151,8 +151,8 @@ class ERP5Catalog(Folder, Catalog):
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Explicitly add tabs for manage_options
# Explicitly add tabs for manage_options
manage_options
=
({
'label'
:
'
View'
,
'action'
:
'view
'
},
manage_options
=
({
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
{
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
{
'label'
:
'
View'
,
'action'
:
'view
'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'label'
:
'Ownership'
,
'action'
:
'manage_owner'
},
{
'label'
:
'Ownership'
,
'action'
:
'manage_owner'
},
...
...
product/ERP5Catalog/Tool/ERP5CatalogTool.py
View file @
0c0fa0d2
...
@@ -57,8 +57,8 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool):
...
@@ -57,8 +57,8 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool):
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
# Explicitly add tabs for manage_options
# Explicitly add tabs for manage_options
manage_options
=
({
'label'
:
'
View'
,
'action'
:
'view
'
},
manage_options
=
({
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
{
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
{
'label'
:
'
View'
,
'action'
:
'view
'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'label'
:
'Ownership'
,
'action'
:
'manage_owner'
},
{
'label'
:
'Ownership'
,
'action'
:
'manage_owner'
},
...
...
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