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
Hamza
erp5
Commits
f8f26a04
Commit
f8f26a04
authored
Jan 15, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore and log if bt is not defined.
parent
e1394fc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
product/ERP5Configurator/Document/PortalTypeRolesSpreadsheetConfiguratorItem.py
...or/Document/PortalTypeRolesSpreadsheetConfiguratorItem.py
+2
-1
product/ERP5Configurator/mixin/configurator_item.py
product/ERP5Configurator/mixin/configurator_item.py
+7
-0
No files found.
product/ERP5Configurator/Document/PortalTypeRolesSpreadsheetConfiguratorItem.py
View file @
f8f26a04
...
...
@@ -83,7 +83,8 @@ class PortalTypeRolesSpreadsheetConfiguratorItem(ConfiguratorItemMixin, XMLObjec
## Update BT5
bt5_obj
=
business_configuration
.
getSpecialiseValue
()
bt5_obj
.
edit
(
template_portal_type_roles_list
=
self
.
_spreadsheet_cache
.
keys
())
if
bt5_obj
is
not
None
:
bt5_obj
.
edit
(
template_portal_type_roles_list
=
self
.
_spreadsheet_cache
.
keys
())
def
checkSpreadSheetConsistency
(
self
):
"""Check that the spread sheet is consistent with categories spreadsheet.
...
...
product/ERP5Configurator/mixin/configurator_item.py
View file @
f8f26a04
...
...
@@ -36,10 +36,17 @@ class ConfiguratorItemMixin:
def
install
(
self
,
document
,
business_configuration
,
prefix
=
''
):
""" Add object to customer customization template. """
bt5_obj
=
business_configuration
.
getSpecialiseValue
()
if
bt5_obj
is
None
:
LOG
(
'ConfiguratorItem'
,
INFO
,
'Unable to find related business template to %s'
%
\
business_configuration
.
getRelativeUrl
())
return
if
document
.
getPortalType
()
in
[
'Category'
,
'Base Category'
]:
prefix
=
"portal_categories/"
template_path_list
=
[
'%s%s'
%
(
prefix
,
document
.
getRelativeUrl
()),
'%s%s/**'
%
(
prefix
,
document
.
getRelativeUrl
())]
current_template_path_list
=
list
(
bt5_obj
.
getTemplatePathList
())
current_template_path_list
.
extend
(
template_path_list
)
bt5_obj
.
edit
(
template_path_list
=
current_template_path_list
)
...
...
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