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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
erp5
Commits
01d94e89
Commit
01d94e89
authored
Oct 13, 2014
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add French Translation
parent
d0dbb7d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+7
-0
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
01d94e89
...
...
@@ -117,6 +117,9 @@ catalog_method_filter_list = ('_filter_expression_archive',
INSTALLED_BT_FOR_DIFF
=
'installed_bt_for_diff'
_MARKER
=
[]
def
_getCatalog
(
acquisition_context
):
"""
Return the id of the SQLCatalog which correspond to the current BT.
...
...
@@ -5817,6 +5820,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_portal_types_id_list
=
list
(
self
.
getTemplatePortalTypeIdList
())
bt_portal_type_roles_list
=
list
(
self
.
getTemplatePortalTypeRoleList
())
bt_wf_chain_list
=
list
(
self
.
getTemplatePortalTypeWorkflowChainList
())
Base_translateString
=
self
.
Base_translateString
for
id
in
bt_portal_types_id_list
:
portal_type
=
ttool
.
getTypeInfo
(
id
)
...
...
@@ -5863,6 +5867,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_base_category_list
.
append
(
base_cat_id
)
for
act_id
in
action_list
:
if
act_id
is
None
:
return
(
1
,
Base_translateString
(
"ERROR: An action has an empty id on portal_type ${id}"
,
mapping
=
dict
(
id
=
id
)))
action_id
=
id
+
' | '
+
act_id
if
action_id
not
in
bt_action_list
:
bt_action_list
.
append
(
action_id
)
...
...
@@ -5887,6 +5893,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
self
.
setTemplatePortalTypePropertySheetList
(
bt_property_sheet_list
)
self
.
setTemplatePortalTypeBaseCategoryList
(
bt_base_category_list
)
self
.
setTemplateActionPathList
(
bt_action_list
)
return
(
0
,
""
)
def
guessPortalTypes
(
self
,
**
kw
):
...
...
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