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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
erp5
Commits
0a1be69a
Commit
0a1be69a
authored
Mar 29, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testTradeReports: create movements with both sides
parent
a1577d1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5/tests/testTradeReports.py
product/ERP5/tests/testTradeReports.py
+8
-0
No files found.
product/ERP5/tests/testTradeReports.py
View file @
0a1be69a
...
@@ -113,6 +113,13 @@ class TestTradeReports(ERP5ReportTestCase):
...
@@ -113,6 +113,13 @@ class TestTradeReports(ERP5ReportTestCase):
id
=
'Organisation_2'
,
id
=
'Organisation_2'
,
group
=
'g2'
,
group
=
'g2'
,
site
=
'demo_site_B'
)
site
=
'demo_site_B'
)
# no group no site
if
not
self
.
organisation_module
.
has_key
(
'Organisation_3'
):
org
=
self
.
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
,
reference
=
'Organisation_3'
,
title
=
'Organisation_3'
,
id
=
'Organisation_3'
,)
# create unit categories
# create unit categories
for
unit_id
in
(
'kg'
,
'g'
,):
for
unit_id
in
(
'kg'
,
'g'
,):
...
@@ -621,6 +628,7 @@ class TestTradeReports(ERP5ReportTestCase):
...
@@ -621,6 +628,7 @@ class TestTradeReports(ERP5ReportTestCase):
title
=
'Inventory 1'
,
title
=
'Inventory 1'
,
simulation_state
=
'delivered'
,
simulation_state
=
'delivered'
,
destination_value
=
self
.
organisation_module
.
Organisation_1
,
destination_value
=
self
.
organisation_module
.
Organisation_1
,
source_value
=
self
.
organisation_module
.
Organisation_3
,
start_date
=
DateTime
(
2006
,
2
,
2
),
start_date
=
DateTime
(
2006
,
2
,
2
),
resource
=
'product_module/product_A'
,
resource
=
'product_module/product_A'
,
quantity
=
11
,
quantity
=
11
,
...
...
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