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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
7952ff8f
Commit
7952ff8f
authored
Apr 02, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: erp5_mrp: Migrate Documents and Unit Tests from filesystem.
parent
d810bfaf
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
1119 additions
and
100 deletions
+1119
-100
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecution.py
...portal_components/document.erp5.ManufacturingExecution.py
+22
-23
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecution.xml
...ortal_components/document.erp5.ManufacturingExecution.xml
+110
-0
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecutionCell.py
...al_components/document.erp5.ManufacturingExecutionCell.py
+29
-33
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecutionCell.xml
...l_components/document.erp5.ManufacturingExecutionCell.xml
+110
-0
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecutionLine.py
...al_components/document.erp5.ManufacturingExecutionLine.py
+1
-1
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecutionLine.xml
...l_components/document.erp5.ManufacturingExecutionLine.xml
+110
-0
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ProductionSimulationRule.xml
...tal_components/document.erp5.ProductionSimulationRule.xml
+20
-16
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.TransformationSimulationRule.py
..._components/document.erp5.TransformationSimulationRule.py
+4
-3
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.TransformationSimulationRule.xml
...components/document.erp5.TransformationSimulationRule.xml
+110
-0
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.TransformationSourcingSimulationRule.py
...nts/document.erp5.TransformationSourcingSimulationRule.py
+1
-2
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.TransformationSourcingSimulationRule.xml
...ts/document.erp5.TransformationSourcingSimulationRule.xml
+110
-0
bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Cell.xml
...ateItem/portal_types/Manufacturing%20Execution%20Cell.xml
+4
-0
bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Cell.xml
...eItem/portal_types/Production%20Packing%20List%20Cell.xml
+4
-0
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testMRP.py
...p/TestTemplateItem/portal_components/test.erp5.testMRP.py
+10
-12
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testMRP.xml
.../TestTemplateItem/portal_components/test.erp5.testMRP.xml
+110
-0
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testProductionOrder.py
...teItem/portal_components/test.erp5.testProductionOrder.py
+6
-7
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testProductionOrder.xml
...eItem/portal_components/test.erp5.testProductionOrder.xml
+110
-0
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testProductionPackingList.py
.../portal_components/test.erp5.testProductionPackingList.py
+2
-1
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testProductionPackingList.xml
...portal_components/test.erp5.testProductionPackingList.xml
+110
-0
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testTransformation.py
...ateItem/portal_components/test.erp5.testTransformation.py
+2
-1
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testTransformation.xml
...teItem/portal_components/test.erp5.testTransformation.xml
+110
-0
bt5/erp5_mrp/bt/template_document_id_list
bt5/erp5_mrp/bt/template_document_id_list
+6
-1
bt5/erp5_mrp/bt/template_test_id_list
bt5/erp5_mrp/bt/template_test_id_list
+4
-0
bt5/erp5_mrp/bt/test_dependency_list
bt5/erp5_mrp/bt/test_dependency_list
+14
-0
No files found.
product/ERP5/Document/
ManufacturingExecution.py
→
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.
ManufacturingExecution.py
View file @
7952ff8f
...
@@ -32,28 +32,27 @@ from Products.ERP5Type import Permissions, PropertySheet
...
@@ -32,28 +32,27 @@ from Products.ERP5Type import Permissions, PropertySheet
from
Products.ERP5.Document.Delivery
import
Delivery
from
Products.ERP5.Document.Delivery
import
Delivery
class
ManufacturingExecution
(
Delivery
):
class
ManufacturingExecution
(
Delivery
):
"""
"""
A Transaction object allows to add
A Transaction object allows to add
elementary accounting transactions in the general ledger
elementary accounting transactions in the general ledger
"""
"""
# CMF Type Definition
meta_type
=
'ERP5 Manufacturing Execution'
portal_type
=
'Manufacturing Execution'
# CMF Type Definition
# Declarative security
meta_type
=
'ERP5 Manufacturing Execution'
security
=
ClassSecurityInfo
()
portal_type
=
'Manufacturing Execution'
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative security
# Default Properties
security
=
ClassSecurityInfo
()
property_sheets
=
(
PropertySheet
.
Base
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
,
PropertySheet
.
XMLObject
,
PropertySheet
.
CategoryCore
# Default Properties
,
PropertySheet
.
DublinCore
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
Task
,
PropertySheet
.
XMLObject
,
PropertySheet
.
Arrow
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
Movement
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Delivery
,
PropertySheet
.
Task
,
PropertySheet
.
Reference
,
PropertySheet
.
Arrow
,
PropertySheet
.
TradeCondition
,
PropertySheet
.
Movement
)
,
PropertySheet
.
Delivery
\ No newline at end of file
,
PropertySheet
.
Reference
,
PropertySheet
.
TradeCondition
)
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecution.xml
0 → 100644
View file @
7952ff8f
<?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>
ManufacturingExecution
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.ManufacturingExecution
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.ManufacturingExecution
</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/>
</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/
ManufacturingExecutionCell.py
→
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.
ManufacturingExecutionCell.py
View file @
7952ff8f
...
@@ -27,41 +27,37 @@
...
@@ -27,41 +27,37 @@
##############################################################################
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.Document.DeliveryCell
import
DeliveryCell
from
Products.ERP5.Document.DeliveryCell
import
DeliveryCell
class
ManufacturingExecutionCell
(
DeliveryCell
):
class
ManufacturingExecutionCell
(
DeliveryCell
):
"""
A DeliveryCell allows to define specific quantities
for each variation of a resource in a delivery line.
"""
meta_type
=
'ERP5 Manufacturing Execution Cell'
portal_type
=
'Manufacturing Execution Cell'
# Declarative security
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
Arrow
,
PropertySheet
.
Amount
,
PropertySheet
.
Task
,
PropertySheet
.
Movement
,
PropertySheet
.
Price
,
PropertySheet
.
Predicate
,
PropertySheet
.
MappedValue
,
PropertySheet
.
ItemAggregation
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'hasCellContent'
)
def
hasCellContent
(
self
,
base_id
=
'movement'
):
"""A cell cannot have cell content itself.
"""
"""
A DeliveryCell allows to define specific quantities
return
0
for each variation of a resource in a delivery line.
\ No newline at end of file
"""
meta_type
=
'ERP5 Manufacturing Execution Cell'
portal_type
=
'Manufacturing Execution Cell'
# Declarative security
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
Arrow
,
PropertySheet
.
Amount
,
PropertySheet
.
Task
,
PropertySheet
.
Movement
,
PropertySheet
.
Price
,
PropertySheet
.
Predicate
,
PropertySheet
.
MappedValue
,
PropertySheet
.
ItemAggregation
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'hasCellContent'
)
def
hasCellContent
(
self
,
base_id
=
'movement'
):
"""A cell cannot have cell content itself.
"""
return
0
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecutionCell.xml
0 → 100644
View file @
7952ff8f
<?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>
ManufacturingExecutionCell
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.ManufacturingExecutionCell
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.ManufacturingExecutionCell
</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/>
</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/
ManufacturingExecutionLine.py
→
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.
ManufacturingExecutionLine.py
View file @
7952ff8f
...
@@ -57,7 +57,7 @@ class ManufacturingExecutionLine(DeliveryLine):
...
@@ -57,7 +57,7 @@ class ManufacturingExecutionLine(DeliveryLine):
)
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'newCellContent'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'newCellContent'
)
def
newCellContent
(
self
,
id
,
portal_type
=
'Manufacturing Execution Cell'
,
**
kw
):
def
newCellContent
(
self
,
id
,
portal_type
=
'Manufacturing Execution Cell'
,
**
kw
):
# pylint: disable=redefined-builtin
"""Overriden to specify default portal type
"""Overriden to specify default portal type
"""
"""
return
self
.
newContent
(
id
=
id
,
portal_type
=
portal_type
,
**
kw
)
return
self
.
newContent
(
id
=
id
,
portal_type
=
portal_type
,
**
kw
)
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.ManufacturingExecutionLine.xml
0 → 100644
View file @
7952ff8f
<?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>
ManufacturingExecutionLine
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.ManufacturingExecutionLine
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.ManufacturingExecutionLine
</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/>
</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_mrp/DocumentTemplateItem/portal_components/document.erp5.ProductionSimulationRule.xml
View file @
7952ff8f
...
@@ -100,24 +100,28 @@
...
@@ -100,24 +100,28 @@
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<list>
<key>
<string>
_log
</string>
</key>
<dictionary>
<value>
<item>
<list>
<key>
<string>
action
</string>
</key>
<dictionary>
<value>
<string>
validate
</string>
</value>
<item>
</item>
<key>
<string>
action
</string>
</key>
<item>
<value>
<string>
validate
</string>
</value>
<key>
<string>
validation_state
</string>
</key>
</item>
<value>
<string>
validated
</string>
</value>
<item>
</item>
<key>
<string>
validation_state
</string>
</key>
</dictionary>
<value>
<string>
validated
</string>
</value>
</list>
</item>
</tuple>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
product/ERP5/Document/
TransformationSimulationRule.py
→
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.
TransformationSimulationRule.py
View file @
7952ff8f
...
@@ -26,10 +26,9 @@
...
@@ -26,10 +26,9 @@
#
#
##############################################################################
##############################################################################
import
zope.interface
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Acquisition
import
aq_base
from
Acquisition
import
aq_base
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.TransactionalVariable
import
getTransactionalVariable
from
Products.ERP5Type.TransactionalVariable
import
getTransactionalVariable
from
Products.ERP5.mixin.rule
import
RuleMixin
from
Products.ERP5.mixin.rule
import
RuleMixin
from
Products.ERP5.mixin.movement_generator
import
MovementGeneratorMixin
from
Products.ERP5.mixin.movement_generator
import
MovementGeneratorMixin
...
@@ -120,7 +119,9 @@ class TransformationRuleMovementGenerator(MovementGeneratorMixin):
...
@@ -120,7 +119,9 @@ class TransformationRuleMovementGenerator(MovementGeneratorMixin):
else
:
else
:
arrow_list
=
parent_movement
.
getCategoryMembershipList
(
arrow_list
=
parent_movement
.
getCategoryMembershipList
(
(
'destination'
,
'destination_section'
),
base
=
True
)
(
'destination'
,
'destination_section'
),
base
=
True
)
def
newMovement
(
reference
,
kw
=
{}):
def
newMovement
(
reference
,
kw
=
None
):
if
kw
is
None
:
kw
=
{}
movement
=
aq_base
(
parent_movement
.
asContext
(
**
kw
)).
__of__
(
movement
=
aq_base
(
parent_movement
.
asContext
(
**
kw
)).
__of__
(
self
.
_applied_rule
)
self
.
_applied_rule
)
movement
.
_setReference
(
reference
)
movement
.
_setReference
(
reference
)
...
...
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.TransformationSimulationRule.xml
0 → 100644
View file @
7952ff8f
<?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>
TransformationSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.TransformationSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.TransformationSimulationRule
</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/>
</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/
TransformationSourcingSimulationRule.py
→
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.
TransformationSourcingSimulationRule.py
View file @
7952ff8f
...
@@ -26,10 +26,9 @@
...
@@ -26,10 +26,9 @@
#
#
##############################################################################
##############################################################################
import
zope.interface
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Acquisition
import
aq_base
from
Acquisition
import
aq_base
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.mixin.rule
import
RuleMixin
from
Products.ERP5.mixin.rule
import
RuleMixin
from
Products.ERP5.mixin.movement_generator
import
MovementGeneratorMixin
from
Products.ERP5.mixin.movement_generator
import
MovementGeneratorMixin
from
Products.ERP5.mixin.movement_collection_updater
import
\
from
Products.ERP5.mixin.movement_collection_updater
import
\
...
...
bt5/erp5_mrp/DocumentTemplateItem/portal_components/document.erp5.TransformationSourcingSimulationRule.xml
0 → 100644
View file @
7952ff8f
<?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>
TransformationSourcingSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.TransformationSourcingSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.TransformationSourcingSimulationRule
</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/>
</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_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Cell.xml
View file @
7952ff8f
...
@@ -83,6 +83,10 @@
...
@@ -83,6 +83,10 @@
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
ManufacturingExecutionCell
</string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Cell.xml
View file @
7952ff8f
...
@@ -73,6 +73,10 @@
...
@@ -73,6 +73,10 @@
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
DeliveryCell
</string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
product/ERP5/tests/
testMRP.py
→
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.
testMRP.py
View file @
7952ff8f
...
@@ -46,13 +46,13 @@ class TestMRPMixin(TestBPMMixin):
...
@@ -46,13 +46,13 @@ class TestMRPMixin(TestBPMMixin):
def
_createRule
(
self
,
portal_type
):
def
_createRule
(
self
,
portal_type
):
x
=
portal_type
.
replace
(
' Simulation '
,
' '
).
replace
(
' '
,
'_'
).
lower
()
x
=
portal_type
.
replace
(
' Simulation '
,
' '
).
replace
(
' '
,
'_'
).
lower
()
reference
=
"default_"
+
x
reference
=
"default_"
+
x
id
=
"testMRP_"
+
x
id
_
=
"testMRP_"
+
x
rule_tool
=
self
.
portal
.
portal_rules
rule_tool
=
self
.
portal
.
portal_rules
try
:
try
:
rule
=
self
.
getRule
(
reference
=
reference
)
rule
=
self
.
getRule
(
reference
=
reference
)
self
.
assertEqual
(
rule
.
getId
(),
id
)
self
.
assertEqual
(
rule
.
getId
(),
id
_
)
except
IndexError
:
except
IndexError
:
rule
=
rule_tool
.
newContent
(
id
,
portal_type
,
rule
=
rule_tool
.
newContent
(
id
_
,
portal_type
,
reference
=
reference
,
reference
=
reference
,
test_method_id
=
"SimulationMovement_test"
+
portal_type
.
replace
(
' '
,
''
))
test_method_id
=
"SimulationMovement_test"
+
portal_type
.
replace
(
' '
,
''
))
def
newTester
(
p
,
t
,
**
kw
):
def
newTester
(
p
,
t
,
**
kw
):
...
@@ -127,10 +127,10 @@ class TestMRPMixin(TestBPMMixin):
...
@@ -127,10 +127,10 @@ class TestMRPMixin(TestBPMMixin):
order
=
self
.
createOrder
(
specialise_value
=
business_process
,
order
=
self
.
createOrder
(
specialise_value
=
business_process
,
start_date
=
base_date
,
start_date
=
base_date
,
stop_date
=
base_date
+
3
)
stop_date
=
base_date
+
3
)
order_line
=
self
.
createOrderLine
(
order
,
self
.
createOrderLine
(
order
,
quantity
=
10
,
quantity
=
10
,
resource
=
transformation
.
getResource
(),
resource
=
transformation
.
getResource
(),
specialise_value
=
transformation
)
specialise_value
=
transformation
)
return
order
return
order
def
createDefaultTransformation
(
self
):
def
createDefaultTransformation
(
self
):
...
@@ -291,8 +291,8 @@ class TestMRPImplementation(TestMRPMixin):
...
@@ -291,8 +291,8 @@ class TestMRPImplementation(TestMRPMixin):
self
.
order
=
self
.
createDefaultOrder
(
business_process
)
self
.
order
=
self
.
createDefaultOrder
(
business_process
)
self
.
order_line
,
=
self
.
order
.
objectValues
()
self
.
order_line
,
=
self
.
order
.
objectValues
()
if
use_item
:
if
use_item
:
self
.
item
=
self
.
portal
.
item_module
.
newContent
()
self
.
item
=
self
.
portal
.
item_module
.
newContent
()
self
.
order_line
.
setAggregateValue
(
self
.
item
)
self
.
order_line
.
setAggregateValue
(
self
.
item
)
self
.
order
.
_edit
(
source_value
=
self
.
workshop
,
destination_value
=
self
.
destination
)
self
.
order
.
_edit
(
source_value
=
self
.
workshop
,
destination_value
=
self
.
destination
)
self
.
order
.
plan
()
self
.
order
.
plan
()
self
.
tic
()
self
.
tic
()
...
@@ -360,7 +360,7 @@ class TestMRPImplementation(TestMRPMixin):
...
@@ -360,7 +360,7 @@ class TestMRPImplementation(TestMRPMixin):
def
getRelatedDeliveryList
(
portal_type
):
def
getRelatedDeliveryList
(
portal_type
):
return
order
.
getCausalityRelatedValueList
(
portal_type
=
portal_type
)
return
order
.
getCausalityRelatedValueList
(
portal_type
=
portal_type
)
mo
,
=
getRelatedDeliveryList
(
"Manufacturing Order Line"
)
self
.
assertEquals
(
len
(
getRelatedDeliveryList
(
"Manufacturing Order Line"
)),
1
)
# Build First Manufacturing Execution
# Build First Manufacturing Execution
order
.
localBuild
()
order
.
localBuild
()
self
.
tic
()
self
.
tic
()
...
@@ -415,8 +415,6 @@ class TestMRPImplementation(TestMRPMixin):
...
@@ -415,8 +415,6 @@ class TestMRPImplementation(TestMRPMixin):
order
=
self
.
order
order
=
self
.
order
order
.
confirm
()
order
.
confirm
()
order
.
localBuild
()
order
.
localBuild
()
order_line
=
self
.
order_line
resource
=
order_line
.
getResourceValue
()
self
.
tic
()
self
.
tic
()
manufacturing_order_line
,
=
order
.
getCausalityRelatedValueList
(
manufacturing_order_line
,
=
order
.
getCausalityRelatedValueList
(
portal_type
=
"Manufacturing Order Line"
)
portal_type
=
"Manufacturing Order Line"
)
...
...
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testMRP.xml
0 → 100644
View file @
7952ff8f
<?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>
testMRP
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testMRP
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testMRP
</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/
testProductionOrder.py
→
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.
testProductionOrder.py
View file @
7952ff8f
...
@@ -34,7 +34,7 @@ import unittest
...
@@ -34,7 +34,7 @@ import unittest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
zLOG
import
LOG
from
zLOG
import
LOG
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
testOrder
import
TestOrderMixin
from
Products.ERP5.tests.
testOrder
import
TestOrderMixin
from
Products.ERP5.tests.utils
import
newSimulationExpectedFailure
from
Products.ERP5.tests.utils
import
newSimulationExpectedFailure
class
TestProductionOrderMixin
(
TestOrderMixin
):
class
TestProductionOrderMixin
(
TestOrderMixin
):
...
@@ -95,9 +95,8 @@ class TestProductionOrderMixin(TestOrderMixin):
...
@@ -95,9 +95,8 @@ class TestProductionOrderMixin(TestOrderMixin):
TestOrderMixin
.
createCategories
(
self
)
TestOrderMixin
.
createCategories
(
self
)
if
len
(
self
.
category_tool
.
operation
.
contentValues
())
==
0
:
if
len
(
self
.
category_tool
.
operation
.
contentValues
())
==
0
:
for
category_id
in
self
.
operation_category_list
:
for
category_id
in
self
.
operation_category_list
:
o
=
self
.
category_tool
.
operation
.
newContent
(
self
.
category_tool
.
operation
.
newContent
(
portal_type
=
'Category'
,
portal_type
=
'Category'
,
id
=
category_id
)
id
=
category_id
)
def
stepCreateColourSizeVariatedComponent1
(
self
,
sequence
=
None
,
sequence_list
=
None
,
\
def
stepCreateColourSizeVariatedComponent1
(
self
,
sequence
=
None
,
sequence_list
=
None
,
\
**
kw
):
**
kw
):
...
@@ -683,8 +682,8 @@ class TestProductionOrderMixin(TestOrderMixin):
...
@@ -683,8 +682,8 @@ class TestProductionOrderMixin(TestOrderMixin):
simulation_movement_list
=
applied_rule
.
objectValues
()
simulation_movement_list
=
applied_rule
.
objectValues
()
sequence
.
edit
(
simulation_movement_list
=
simulation_movement_list
)
sequence
.
edit
(
simulation_movement_list
=
simulation_movement_list
)
def
checkObjectAttributes
(
self
,
obj
ect
,
attribute_list
):
def
checkObjectAttributes
(
self
,
obj
,
attribute_list
):
LOG
(
'checkObjectAttributes object.getPath'
,
0
,
obj
ect
.
getPath
())
LOG
(
'checkObjectAttributes object.getPath'
,
0
,
obj
.
getPath
())
for
value
,
attribute
in
attribute_list
:
for
value
,
attribute
in
attribute_list
:
try
:
try
:
self
.
assertEqual
(
value
,
self
.
assertEqual
(
value
,
...
@@ -1759,7 +1758,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
...
@@ -1759,7 +1758,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
supply_node
=
supply_chain
.
contentValues
(
portal_type
=
'Supply Node'
)[
0
]
supply_node
=
supply_chain
.
contentValues
(
portal_type
=
'Supply Node'
)[
0
]
cb_data
=
supply_chain
.
manage_cutObjects
([
supply_node
.
getId
()])
cb_data
=
supply_chain
.
manage_cutObjects
([
supply_node
.
getId
()])
copied
,
=
empty_supply_chain
.
manage_pasteObjects
(
cb_data
)
self
.
assertEquals
(
len
(
empty_supply_chain
.
manage_pasteObjects
(
cb_data
)),
1
)
def
stepCheckPastedSupplyNode
(
self
,
sequence
=
None
,
sequence_list
=
None
,
def
stepCheckPastedSupplyNode
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
**
kw
):
...
...
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testProductionOrder.xml
0 → 100644
View file @
7952ff8f
<?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>
testProductionOrder
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testProductionOrder
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testProductionOrder
</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/
testProductionPackingList.py
→
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.
testProductionPackingList.py
View file @
7952ff8f
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
##############################################################################
#
#
# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
...
@@ -31,7 +32,7 @@ import unittest
...
@@ -31,7 +32,7 @@ import unittest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.ERP5.tests
.testProductionOrder
import
TestProductionOrderMixin
from
erp5.component.test
.testProductionOrder
import
TestProductionOrderMixin
from
Products.ERP5.tests.testPackingList
import
TestPackingListMixin
from
Products.ERP5.tests.testPackingList
import
TestPackingListMixin
from
Products.ERP5.tests.utils
import
newSimulationExpectedFailure
from
Products.ERP5.tests.utils
import
newSimulationExpectedFailure
...
...
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testProductionPackingList.xml
0 → 100644
View file @
7952ff8f
<?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>
testProductionPackingList
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testProductionPackingList
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testProductionPackingList
</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/
testTransformation.py
→
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.
testTransformation.py
View file @
7952ff8f
##############################################################################
##############################################################################
#
#
# Copyright (c) 2009 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 2009 Nexedi SARL and Contributors. All Rights Reserved.
# Sebastien Robin <seb@nexedi.com>
# Sebastien Robin <seb@nexedi.com>
...
@@ -26,7 +27,7 @@
...
@@ -26,7 +27,7 @@
#
#
##############################################################################
##############################################################################
from
Products.ERP5.tests
.testProductionOrder
import
TestProductionOrderMixin
from
erp5.component.test
.testProductionOrder
import
TestProductionOrderMixin
from
Products.ERP5.tests.testInventoryAPI
import
BaseTestUnitConversion
from
Products.ERP5.tests.testInventoryAPI
import
BaseTestUnitConversion
class
TestTransformationMixin
(
TestProductionOrderMixin
):
class
TestTransformationMixin
(
TestProductionOrderMixin
):
...
...
bt5/erp5_mrp/TestTemplateItem/portal_components/test.erp5.testTransformation.xml
0 → 100644
View file @
7952ff8f
<?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>
testTransformation
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.tests.testTransformation
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testTransformation
</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_mrp/bt/template_document_id_list
View file @
7952ff8f
document.erp5.ProductionSimulationRule
document.erp5.ManufacturingExecution
\ No newline at end of file
document.erp5.ManufacturingExecutionCell
document.erp5.ManufacturingExecutionLine
document.erp5.ProductionSimulationRule
document.erp5.TransformationSimulationRule
document.erp5.TransformationSourcingSimulationRule
\ No newline at end of file
bt5/erp5_mrp/bt/template_test_id_list
0 → 100644
View file @
7952ff8f
test.erp5.testMRP
test.erp5.testProductionOrder
test.erp5.testProductionPackingList
test.erp5.testTransformation
\ No newline at end of file
bt5/erp5_mrp/bt/test_dependency_list
0 → 100644
View file @
7952ff8f
erp5_full_text_mroonga_catalog
erp5_item
erp5_accounting
erp5_invoicing
erp5_simplified_invoicing
erp5_core_proxy_field_legacy
erp5_configurator_standard_solver
erp5_configurator_standard_trade_template
erp5_configurator_standard_accounting_template
erp5_configurator_standard_invoicing_template
erp5_simulation_test
erp5_project
erp5_dummy_movement
erp5_apparel
\ 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