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
Hugo Ricateau
erp5
Commits
fe89ccd1
Commit
fe89ccd1
authored
Dec 28, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Business Template V2: Change name from Business Manager to Business Commit V2
parent
cede04bb
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
61 deletions
+57
-61
product/ERP5/Document/BusinessTemplateV2.py
product/ERP5/Document/BusinessTemplateV2.py
+51
-55
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+2
-2
product/ERP5/__init__.py
product/ERP5/__init__.py
+4
-4
No files found.
product/ERP5/Document/Business
Manager
.py
→
product/ERP5/Document/Business
TemplateV2
.py
View file @
fe89ccd1
This diff is collapsed.
Click to expand it.
product/ERP5/Tool/TemplateTool.py
View file @
fe89ccd1
...
...
@@ -109,8 +109,8 @@ class TemplateTool (BaseTool):
meta_type
=
'ERP5 Template Tool'
portal_type
=
'Template Tool'
allowed_content_types
=
[
'Business Manager'
,
'Business Template'
,
'Business Template V2'
,
]
# This stores information on repositories.
...
...
@@ -360,7 +360,7 @@ class TemplateTool (BaseTool):
"""Download Business Template from local directory or file
"""
if
format_version
==
3
:
bm
=
self
.
newContent
(
bt_id
,
'Business
Manager
'
)
bm
=
self
.
newContent
(
bt_id
,
'Business
Template V2
'
)
bm
.
importFile
(
path
)
return
bm
...
...
product/ERP5/__init__.py
View file @
fe89ccd1
...
...
@@ -54,12 +54,12 @@ from Tool import CategoryTool, SimulationTool, RuleTool, IdTool, TemplateTool,\
CertificateAuthorityTool
,
InotifyTool
,
TaskDistributionTool
,
\
DiffTool
,
CommitTool
import
ERP5Site
from
Document
import
PythonScript
,
Business
Manager
from
Document
import
PythonScript
,
Business
TemplateV2
object_classes
=
(
ERP5Site
.
ERP5Site
,
PythonScript
.
PythonScriptThroughZMI
,
Business
Manager
.
BusinessItem
,
Business
Manager
.
BusinessPropertyItem
,
Business
Manager
.
BusinessPatchItem
,
Business
TemplateV2
.
BusinessItem
,
Business
TemplateV2
.
BusinessPropertyItem
,
Business
TemplateV2
.
BusinessPatchItem
,
)
portal_tools
=
(
CategoryTool
.
CategoryTool
,
SimulationTool
.
SimulationTool
,
...
...
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