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
1
Issues
1
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
Roque
erp5
Commits
1f5a2987
Commit
1f5a2987
authored
Nov 24, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move BPM used for task reporting from testTaskReporting to erp5_simulation_test
parent
4ce36942
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
272 additions
and
21 deletions
+272
-21
bt5/erp5_simulation_test/PathTemplateItem/business_process_module/erp5_default_task_business_process.xml
...ess_process_module/erp5_default_task_business_process.xml
+178
-0
bt5/erp5_simulation_test/PathTemplateItem/business_process_module/erp5_default_task_business_process/delivery_path.xml
...dule/erp5_default_task_business_process/delivery_path.xml
+88
-0
bt5/erp5_simulation_test/bt/revision
bt5/erp5_simulation_test/bt/revision
+1
-1
bt5/erp5_simulation_test/bt/template_path_list
bt5/erp5_simulation_test/bt/template_path_list
+2
-0
product/ERP5/tests/testTaskReporting.py
product/ERP5/tests/testTaskReporting.py
+3
-20
No files found.
bt5/erp5_simulation_test/PathTemplateItem/business_process_module/erp5_default_task_business_process.xml
0 → 100644
View file @
1f5a2987
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Business Process"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAY=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
specialise/business_process_module/erp5_default_business_process
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
erp5_default_task_business_process
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_default_task_business_process
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Business Process
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
1
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"6"
aka=
"AAAAAAAAAAY="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_simulation_test/PathTemplateItem/business_process_module/erp5_default_task_business_process/delivery_path.xml
0 → 100644
View file @
1f5a2987
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Trade Model Path"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/default/delivery
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
TMP-DELIVERY
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
delivery_path
</string>
</value>
</item>
<item>
<key>
<string>
payment_end_of_month
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Trade Model Path
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Delivery
</string>
</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/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_simulation_test/bt/revision
View file @
1f5a2987
26
27
\ No newline at end of file
\ No newline at end of file
bt5/erp5_simulation_test/bt/template_path_list
View file @
1f5a2987
business_process_module/erp5_default_business_process
business_process_module/erp5_default_business_process
business_process_module/erp5_default_business_process/**
business_process_module/erp5_default_business_process/**
business_process_module/erp5_default_task_business_process
business_process_module/erp5_default_task_business_process/**
portal_categories/trade_phase/default
portal_categories/trade_phase/default
portal_categories/trade_phase/default/**
portal_categories/trade_phase/default/**
portal_categories/trade_state/**
portal_categories/trade_state/**
...
...
product/ERP5/tests/testTaskReporting.py
View file @
1f5a2987
...
@@ -35,6 +35,9 @@ from DateTime import DateTime
...
@@ -35,6 +35,9 @@ from DateTime import DateTime
class
TestTaskReporting
(
ERP5ReportTestCase
):
class
TestTaskReporting
(
ERP5ReportTestCase
):
"""Test Task Reporting
"""Test Task Reporting
"""
"""
business_process
=
\
'business_process_module/erp5_default_task_business_process'
def
getTitle
(
self
):
def
getTitle
(
self
):
return
"Task Reporting"
return
"Task Reporting"
...
@@ -55,24 +58,6 @@ class TestTaskReporting(ERP5ReportTestCase):
...
@@ -55,24 +58,6 @@ class TestTaskReporting(ERP5ReportTestCase):
if
simulation_state
==
'confirmed'
:
if
simulation_state
==
'confirmed'
:
task
.
confirm
()
task
.
confirm
()
def
createBusinessProcess
(
self
):
module
=
self
.
portal
.
business_process_module
id
=
self
.
__class__
.
__name__
try
:
business_process
=
module
[
id
]
except
KeyError
:
default
=
module
.
erp5_default_business_process
business_process
=
module
.
newContent
(
id
,
default
.
getPortalType
(),
specialise_value
=
default
)
delivery_path
,
=
default
.
getTradeModelPathValueList
(
trade_phase
=
'default/delivery'
)
# We don't set any trade_date here, so that start and stop dates
# are copied from Tasks to Task Reports.
business_process
.
newContent
(
portal_type
=
delivery_path
.
getPortalType
(),
reference
=
delivery_path
.
getReference
(),
trade_phase
=
delivery_path
.
getTradePhase
())
return
business_process
.
getRelativeUrl
()
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
"""Setup the fixture.
"""Setup the fixture.
"""
"""
...
@@ -83,8 +68,6 @@ class TestTaskReporting(ERP5ReportTestCase):
...
@@ -83,8 +68,6 @@ class TestTaskReporting(ERP5ReportTestCase):
if
rule
.
getValidationState
()
!=
'validated'
:
if
rule
.
getValidationState
()
!=
'validated'
:
rule
.
validate
()
rule
.
validate
()
self
.
business_process
=
self
.
createBusinessProcess
()
# create organisations
# create organisations
if
not
self
.
portal
.
organisation_module
.
has_key
(
'Organisation_1'
):
if
not
self
.
portal
.
organisation_module
.
has_key
(
'Organisation_1'
):
org
=
self
.
portal
.
organisation_module
.
newContent
(
org
=
self
.
portal
.
organisation_module
.
newContent
(
...
...
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