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
Gabriel Monnerat
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
Show 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):
manage
=
manage_main
=
ZSQL
.
manage
manage_main
.
_setName
(
'manage_main'
)
# View content list, Force /view, Standard option in SQLMethod
manage_options
=
({
'icon'
:
''
,
'label'
:
'View'
,
'action'
:
'view'
},)
\
+
ZSQL
.
manage_options
# View content list, replace /view, Standard option in SQLMethod
manage_options
=
(
ZSQL
.
manage_options
[
0
],
)
+
\
({
'icon'
:
''
,
'label'
:
'View'
,
'action'
:
'view'
},)
+
\
ZSQL
.
manage_options
[
2
:]
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
...
...
product/ERP5Catalog/Document/ERP5Catalog.py
View file @
0c0fa0d2
...
...
@@ -151,8 +151,8 @@ class ERP5Catalog(Folder, Catalog):
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Explicitly add tabs for manage_options
manage_options
=
({
'label'
:
'
View'
,
'action'
:
'view
'
},
{
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
manage_options
=
({
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
{
'label'
:
'
View'
,
'action'
:
'view
'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'label'
:
'Ownership'
,
'action'
:
'manage_owner'
},
...
...
product/ERP5Catalog/Tool/ERP5CatalogTool.py
View file @
0c0fa0d2
...
...
@@ -57,8 +57,8 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool):
security
=
ClassSecurityInfo
()
# Explicitly add tabs for manage_options
manage_options
=
({
'label'
:
'
View'
,
'action'
:
'view
'
},
{
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
manage_options
=
({
'label'
:
'
Contents'
,
'action'
:
'manage_main
'
},
{
'label'
:
'
View'
,
'action'
:
'view
'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'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