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
Léo-Paul Géneau
erp5
Commits
4820965b
Commit
4820965b
authored
Jan 06, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Migrate filesystem source files related to erp5_apparel.
parent
04b49859
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
719 additions
and
26 deletions
+719
-26
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.Consumption.py
...mplateItem/portal_components/document.erp5.Consumption.py
+0
-0
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.Consumption.xml
...plateItem/portal_components/document.erp5.Consumption.xml
+144
-0
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.VariationImage.py
...ateItem/portal_components/document.erp5.VariationImage.py
+0
-0
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.VariationImage.xml
...teItem/portal_components/document.erp5.VariationImage.xml
+111
-0
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testApparelModel.py
...plateItem/portal_components/test.erp5.testApparelModel.py
+1
-1
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testApparelModel.xml
...lateItem/portal_components/test.erp5.testApparelModel.xml
+110
-0
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testApparelTransformation.py
.../portal_components/test.erp5.testApparelTransformation.py
+3
-4
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testApparelTransformation.xml
...portal_components/test.erp5.testApparelTransformation.xml
+110
-0
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testProductionOrderApparel.py
...portal_components/test.erp5.testProductionOrderApparel.py
+2
-14
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testProductionOrderApparel.xml
...ortal_components/test.erp5.testProductionOrderApparel.xml
+112
-0
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testProductionPackingListApparel.py
..._components/test.erp5.testProductionPackingListApparel.py
+2
-1
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testProductionPackingListApparel.xml
...components/test.erp5.testProductionPackingListApparel.xml
+110
-0
bt5/erp5_apparel/bt/template_document_id_list
bt5/erp5_apparel/bt/template_document_id_list
+8
-6
bt5/erp5_apparel/bt/template_test_id_list
bt5/erp5_apparel/bt/template_test_id_list
+4
-0
bt5/erp5_apparel/bt/test_dependency_list
bt5/erp5_apparel/bt/test_dependency_list
+2
-0
No files found.
product/ERP5/Document/
Consumption.py
→
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.
Consumption.py
View file @
4820965b
File moved
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.Consumption.xml
0 → 100644
View file @
4820965b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
Consumption
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.Consumption
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.Consumption
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 40, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 45, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 46, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 49, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 50, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 53, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 60, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 62, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 63, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 67, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 73, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 75, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 77, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 78, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 82, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 83, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 85, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 87, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 88, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 93, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 95, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 97, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 99, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W:103, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W:105, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W:107, 0: Bad indentation. Found 8 spaces, expected 6 (bad-indentation)
</string>
<string>
W:108, 0: Bad indentation. Found 8 spaces, expected 6 (bad-indentation)
</string>
<string>
W:109, 0: Bad indentation. Found 10 spaces, expected 8 (bad-indentation)
</string>
<string>
W:110, 0: Bad indentation. Found 8 spaces, expected 6 (bad-indentation)
</string>
<string>
W:111, 0: Bad indentation. Found 10 spaces, expected 8 (bad-indentation)
</string>
<string>
W:112, 0: Bad indentation. Found 10 spaces, expected 8 (bad-indentation)
</string>
<string>
W:113, 0: Bad indentation. Found 12 spaces, expected 10 (bad-indentation)
</string>
<string>
W:114, 0: Bad indentation. Found 10 spaces, expected 8 (bad-indentation)
</string>
<string>
W:115, 0: Bad indentation. Found 12 spaces, expected 10 (bad-indentation)
</string>
<string>
W:117, 0: Bad indentation. Found 6 spaces, expected 4 (bad-indentation)
</string>
<string>
W: 62, 4: Arguments number differs from overridden \'_setVariationCategoryList\' method (arguments-differ)
</string>
<string>
W: 77, 4: Arguments number differs from overridden \'setVariationCategoryList\' method (arguments-differ)
</string>
<string>
W: 87, 4: Arguments number differs from overridden \'getVariationRangeBaseCategoryItemList\' method (arguments-differ)
</string>
<string>
W: 93, 13: map/filter on lambda could be replaced by comprehension (deprecated-lambda)
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
VariationImage.py
→
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.
VariationImage.py
View file @
4820965b
File moved
bt5/erp5_apparel/DocumentTemplateItem/portal_components/document.erp5.VariationImage.xml
0 → 100644
View file @
4820965b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
VariationImage
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.VariationImage
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.VariationImage
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 37, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 41, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 42, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 45, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 46, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
<string>
W: 49, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/tests/
testApparelModel.py
→
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.
testApparelModel.py
View file @
4820965b
...
...
@@ -120,7 +120,7 @@ class TestApparelModel(ERP5TypeTestCase):
color1
=
apparel_colour_range
.
newContent
(
title
=
'Blue'
,
portal_type
=
'Apparel Colour Range Variation'
)
color2
=
apparel_colour_range
.
newContent
(
apparel_colour_range
.
newContent
(
title
=
'Red'
,
portal_type
=
'Apparel Colour Range Variation'
)
...
...
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testApparelModel.xml
0 → 100644
View file @
4820965b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testApparelModel
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testApparelModel
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testApparelModel
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/tests/
testApparelTransformation.py
→
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.
testApparelTransformation.py
View file @
4820965b
...
...
@@ -30,8 +30,7 @@
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
zLOG
import
LOG
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
testOrder
import
TestOrderMixin
from
Products.ERP5.tests.testOrder
import
TestOrderMixin
class
TestApparelTransformation
(
TestOrderMixin
,
ERP5TypeTestCase
):
"""
...
...
@@ -49,7 +48,7 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase):
transformed_resource_portal_type
=
'Transformation Transformed Resource'
operation_portal_type
=
'Transformation Operation'
def
afterSetUp
(
self
,
quiet
=
1
,
run
=
1
):
def
afterSetUp
(
self
):
super
(
TestApparelTransformation
,
self
).
afterSetUp
()
self
.
login
()
...
...
@@ -611,7 +610,7 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase):
portal_type
=
"Production Order"
,
temp_object
=
1
,
specialise_value
=
transformation
)
for
i
,
expected
in
enumerate
(
expected_list
):
for
_
,
expected
in
enumerate
(
expected_list
):
context
=
production_order
.
newContent
(
portal_type
=
"Production Order Line"
,
quantity
=
1
,
...
...
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testApparelTransformation.xml
0 → 100644
View file @
4820965b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testApparelTransformation
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testApparelTransformation
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testApparelTransformation
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/tests/
testProductionOrderApparel.py
→
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.
testProductionOrderApparel.py
View file @
4820965b
...
...
@@ -32,7 +32,6 @@ import unittest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
zLOG
import
LOG
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5.tests.testOrder
import
TestOrderMixin
from
Products.ERP5.tests.utils
import
newSimulationExpectedFailure
...
...
@@ -69,7 +68,7 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
operation_category_list
=
[
'operation1'
,
'operation2'
]
if
len
(
self
.
category_tool
.
operation
.
contentValues
())
==
0
:
for
category_id
in
operation_category_list
:
o
=
self
.
category_tool
.
operation
.
newContent
(
self
.
category_tool
.
operation
.
newContent
(
portal_type
=
'Category'
,
id
=
category_id
)
...
...
@@ -310,7 +309,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
sequence
.
edit
(
applied_rule
=
applied_rule
)
self
.
assertTrue
(
applied_rule
is
not
None
)
# Test if applied rule has a specialise value with default_order_rule
portal_rules
=
getToolByName
(
order
,
'portal_rules'
)
# XXX hardcoded value
self
.
assertEqual
(
'default_production_order_rule'
,
\
applied_rule
.
getSpecialiseReference
())
...
...
@@ -366,7 +364,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self
.
assertEqual
(
1
,
len
(
applied_rule_list
))
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_delivering_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test next applied rule
...
...
@@ -377,7 +374,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self
.
assertEqual
(
1
,
len
(
applied_rule_list
))
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test deeper simulation
...
...
@@ -488,7 +484,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self
.
assertEqual
(
1
,
len
(
applied_rule_list
))
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test deeper simulation
...
...
@@ -547,7 +542,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
# Test supply applied rule
applied_rule
=
component_movement
.
objectValues
()[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_sourcing_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test supply movement
...
...
@@ -686,7 +680,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self
.
assertEqual
(
1
,
len
(
applied_rule_list
))
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_delivering_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test next applied rule
...
...
@@ -697,7 +690,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self
.
assertEqual
(
1
,
len
(
applied_rule_list
))
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test deeper simulation
...
...
@@ -759,7 +751,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
# Test supply applied rule
applied_rule
=
component_movement
.
objectValues
()[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_sourcing_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test supply movement
...
...
@@ -797,7 +788,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
applied_rule_list
=
modified_movement
.
objectValues
()
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_sourcing_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test deeper simulation
...
...
@@ -824,7 +814,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self
.
assertEqual
(
1
,
len
(
applied_rule_list
))
applied_rule
=
applied_rule_list
[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test deeper simulation
...
...
@@ -884,7 +873,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
# Test supply applied rule
applied_rule
=
component_movement
.
objectValues
()[
0
]
self
.
assertEqual
(
"Applied Rule"
,
applied_rule
.
getPortalType
())
portal_rules
=
getToolByName
(
applied_rule
,
'portal_rules'
)
self
.
assertEqual
(
'default_transformation_sourcing_rule'
,
\
applied_rule
.
getSpecialiseReference
())
# Test supply movement
...
...
@@ -1230,7 +1218,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
supply_node
=
supply_chain
.
contentValues
(
portal_type
=
'Supply Node'
)[
0
]
cb_data
=
supply_chain
.
manage_cutObjects
([
supply_node
.
getId
()])
copied
,
=
empty_supply_chain
.
manage_pasteObjects
(
cb_data
)
_
,
=
empty_supply_chain
.
manage_pasteObjects
(
cb_data
)
def
stepCheckPastedSupplyNode
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
...
...
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testProductionOrderApparel.xml
0 → 100644
View file @
4820965b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testProductionOrderApparel
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testProductionOrderApparel
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testProductionOrderApparel
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W:319, 34: Redefining built-in \'object\' (redefined-builtin)
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/tests/
testProductionPackingListApparel.py
→
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.
testProductionPackingListApparel.py
View file @
4820965b
# -*- coding: utf-8 -*-
##############################################################################
#
...
...
@@ -30,7 +31,7 @@
import
unittest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5.tests
.testProductionOrderApparel
import
TestProductionOrderApparelMixin
from
erp5.component.test
.testProductionOrderApparel
import
TestProductionOrderApparelMixin
from
Products.ERP5.tests.testProductionPackingList
import
TestProductionDelivery
class
TestProductionDeliveryApparel
(
TestProductionOrderApparelMixin
,
...
...
bt5/erp5_apparel/TestTemplateItem/portal_components/test.erp5.testProductionPackingListApparel.xml
0 → 100644
View file @
4820965b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testProductionPackingListApparel
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testProductionPackingListApparel
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testProductionPackingListApparel
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_apparel/bt/template_document_id_list
View file @
4820965b
document.erp5.ApparelFabric
document.erp5.ApparelShape
document.erp5.ApparelComponent
document.erp5.ApparelModel
document.erp5.ApparelAssortment
document.erp5.ApparelCloth
document.erp5.ApparelColourRange
document.erp5.ApparelSize
document.erp5.ApparelComponent
document.erp5.ApparelFabric
document.erp5.ApparelMeasurement
document.erp5.ApparelCloth
\ No newline at end of file
document.erp5.ApparelModel
document.erp5.ApparelShape
document.erp5.ApparelSize
document.erp5.Consumption
document.erp5.VariationImage
\ No newline at end of file
bt5/erp5_apparel/bt/template_test_id_list
0 → 100644
View file @
4820965b
test.erp5.testApparelModel
test.erp5.testApparelTransformation
test.erp5.testProductionOrderApparel
test.erp5.testProductionPackingListApparel
\ No newline at end of file
bt5/erp5_apparel/bt/test_dependency_list
0 → 100644
View file @
4820965b
erp5_full_text_myisam_catalog
erp5_mrp
\ No newline at end of file
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