Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
c67a462b
Commit
c67a462b
authored
Oct 27, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiple_catalog: Update validation state of the default catalog
parent
6754f934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+4
-0
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
c67a462b
...
...
@@ -1315,6 +1315,10 @@ class ObjectTemplateItem(BaseTemplateItem):
# Check for meta_type of container before creating Catalog
if
container_container
.
meta_type
==
'Catalog Tool'
:
container_container
.
newContent
(
portal_type
=
'Catalog'
,
id
=
container_path
[
-
1
],
title
=
''
)
if
len
(
container_container
.
objectIds
())
>=
1
:
container_container
.
setDefaultErp5CatalogId
(
container_path
[
-
1
])
# Validate the default erp5 catalog
container_container
.
getSQLCatalog
().
validate
()
elif
container_container
.
meta_type
==
'ERP5 Catalog'
:
container_container
.
manage_addProduct
[
'ZSQLCatalog'
].
manage_addSQLCatalog
(
id
=
container_path
[
-
1
],
title
=
''
)
else
:
...
...
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