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
Binh
erp5
Commits
ae4b0e27
Commit
ae4b0e27
authored
Dec 04, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Configurator: import mixin, so that `ConfiguratorItemMixin` is added to registry
parent
aebbacb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
product/ERP5Configurator/__init__.py
product/ERP5Configurator/__init__.py
+1
-0
product/ERP5Configurator/tests/testConfiguratorItem.py
product/ERP5Configurator/tests/testConfiguratorItem.py
+9
-0
No files found.
product/ERP5Configurator/__init__.py
View file @
ae4b0e27
...
...
@@ -38,6 +38,7 @@ this_module = sys.modules[ __name__ ]
document_classes
=
updateGlobals
(
this_module
,
globals
(),
permissions_module
=
Permissions
)
import
mixin
from
Tool
import
ConfiguratorTool
# Define object classes and tools
...
...
product/ERP5Configurator/tests/testConfiguratorItem.py
View file @
ae4b0e27
...
...
@@ -648,3 +648,12 @@ class TestConfiguratorItem(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
pay_link
.
getDeliveryBuilderList
(),
[
"portal_deliveries/payment_transaction_builder"
])
def
test_configurator_item_mixin
(
self
):
"""ConfiguratorItemMixin is available for TTW definition of portal types.
"""
self
.
assertIn
(
'ConfiguratorItemMixin'
,
self
.
portal
.
portal_types
.
newContent
(
portal_type
=
'Base Type'
,
temp_object
=
True
).
getMixinTypeList
())
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