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
82f4aa07
Commit
82f4aa07
authored
Aug 22, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_dms: allow to use web_view action if object has no base data
parent
72166d29
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
4 deletions
+32
-4
bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/web_view.xml
..._dms/ActionTemplateItem/portal_types/Drawing/web_view.xml
+1
-1
bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/web_view.xml
...ActionTemplateItem/portal_types/Presentation/web_view.xml
+1
-1
bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/web_view.xml
.../ActionTemplateItem/portal_types/Spreadsheet/web_view.xml
+1
-1
bt5/erp5_dms/ActionTemplateItem/portal_types/Text/web_view.xml
...rp5_dms/ActionTemplateItem/portal_types/Text/web_view.xml
+1
-1
product/ERP5/tests/testERP5WebWithDms.py
product/ERP5/tests/testERP5WebWithDms.py
+28
-0
No files found.
bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/web_view.xml
View file @
82f4aa07
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
python:object is not None and object.isWebMode() and
object.hasBaseData() and
not object.isEditableMode()
</string>
</value>
<value>
<string>
python:object is not None and object.isWebMode() and not object.isEditableMode()
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/web_view.xml
View file @
82f4aa07
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
python:object is not None and object.isWebMode() and
object.hasBaseData() and
not object.isEditableMode()
</string>
</value>
<value>
<string>
python:object is not None and object.isWebMode() and not object.isEditableMode()
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/web_view.xml
View file @
82f4aa07
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
python:object is not None and object.isWebMode() and
object.hasBaseData() and
not object.isEditableMode()
</string>
</value>
<value>
<string>
python:object is not None and object.isWebMode() and not object.isEditableMode()
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_dms/ActionTemplateItem/portal_types/Text/web_view.xml
View file @
82f4aa07
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
python:object is not None and object.isWebMode() and
object.hasBaseData() and
not object.isEditableMode()
</string>
</value>
<value>
<string>
python:object is not None and object.isWebMode() and not object.isEditableMode()
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
product/ERP5/tests/testERP5WebWithDms.py
View file @
82f4aa07
...
@@ -1694,6 +1694,34 @@ return True
...
@@ -1694,6 +1694,34 @@ return True
"""
"""
self
.
checkWebSiteDocumentViewConsistency
(
"Image"
,
module_id
=
"image_module"
)
self
.
checkWebSiteDocumentViewConsistency
(
"Image"
,
module_id
=
"image_module"
)
def
test_checkWebSiteTextViewConsistency
(
self
):
"""
Checks that the default view action of a Text, viewing from a web site,
is `web_view`.
"""
self
.
checkWebSiteDocumentViewConsistency
(
"Text"
)
def
test_checkWebSitePresentationViewConsistency
(
self
):
"""
Checks that the default view action of a Presentation, viewing from a web
site, is `web_view`.
"""
self
.
checkWebSiteDocumentViewConsistency
(
"Presentation"
)
def
test_checkWebSiteSpreadsheetViewConsistency
(
self
):
"""
Checks that the default view action of a Spreadsheet, viewing from a web
site, is `web_view`.
"""
self
.
checkWebSiteDocumentViewConsistency
(
"Spreadsheet"
)
def
test_checkWebSiteDrawingViewConsistency
(
self
):
"""
Checks that the default view action of a Drawing, viewing from a web site,
is `web_view`.
"""
self
.
checkWebSiteDocumentViewConsistency
(
"Drawing"
)
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestERP5WebWithDms
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestERP5WebWithDms
))
...
...
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