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
Frederic Thoma
erp5
Commits
e1133f21
Commit
e1133f21
authored
May 24, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: No need to save sql_catalog_method_id as property in BM
parent
135921fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+8
-3
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
e1133f21
...
...
@@ -703,7 +703,6 @@ class TemplateTool (BaseTool):
template_catalog_full_text_key
=
import_template
.
getTemplateCatalogFullTextKeyList
()
template_catalog_keyword_key
=
import_template
.
getTemplateCatalogKeywordKeyList
()
template_catalog_local_role_key
=
import_template
.
getTemplateCatalogLocalRoleKeyList
()
template_catalog_method_id
=
import_template
.
getTemplateCatalogMethodIdList
()
template_catalog_multivalue_key
=
import_template
.
getTemplateCatalogMultivalueKeyList
()
template_catalog_related_key
=
import_template
.
getTemplateCatalogRelatedKeyList
()
template_catalog_request_key
=
import_template
.
getTemplateCatalogRequestKeyList
()
...
...
@@ -720,7 +719,6 @@ class TemplateTool (BaseTool):
template_catalog_full_text_key
,
template_catalog_keyword_key
,
template_catalog_local_role_key
,
template_catalog_method_id
,
template_catalog_multivalue_key
,
template_catalog_related_key
,
template_catalog_request_key
,
...
...
@@ -739,7 +737,6 @@ class TemplateTool (BaseTool):
'sql_catalog_full_text_search_keys_list'
,
'sql_catalog_keyword_search_keys_list'
,
'sql_catalog_local_role_keys_list'
,
'sql_catalog_method_id_list'
,
'sql_catalog_multivalue_keys_list'
,
'sql_catalog_related_keys_list'
,
'sql_catalog_request_keys_list'
,
...
...
@@ -755,6 +752,14 @@ class TemplateTool (BaseTool):
removable_property
=
{}
removable_sub_object_path
=
[]
# For catalog method, add paths
template_catalog_method_id_list
=
import_template
.
getTemplateCatalogMethodIdList
()
catalog_method_path_list
=
[]
for
method_id
in
template_catalog_method_id_list
:
method_path
=
'portal_catalog/%s | 1 | 1'
%
method_id
catalog_method_path_list
.
append
(
method_path
)
template_path_list
.
extend
(
catalog_method_path_list
)
if
is_property_added
:
if
catalog_method_path_list
:
catalog_path
=
catalog_method_path_list
[
0
].
rsplit
(
'/'
,
1
)[
0
]
...
...
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