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
Laurent S
erp5
Commits
81cb82e2
Commit
81cb82e2
authored
Jan 06, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trigger builder alarm.
parent
b2e718b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
product/ERP5/tests/testTradeModelLine.py
product/ERP5/tests/testTradeModelLine.py
+20
-1
No files found.
product/ERP5/tests/testTradeModelLine.py
View file @
81cb82e2
...
@@ -344,6 +344,9 @@ class TestTradeModelLine(TestTradeModelLineMixin):
...
@@ -344,6 +344,9 @@ class TestTradeModelLine(TestTradeModelLineMixin):
packing_list
.
stop
()
packing_list
.
stop
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
stepInvoiceBuilderAlarm
()
transaction
.
commit
()
self
.
tic
()
invoice
,
=
packing_list
.
getCausalityRelatedValueList
(
invoice
,
=
packing_list
.
getCausalityRelatedValueList
(
portal_type
=
self
.
invoice_portal_type
)
portal_type
=
self
.
invoice_portal_type
)
...
@@ -475,6 +478,14 @@ class TestTradeModelLine(TestTradeModelLineMixin):
...
@@ -475,6 +478,14 @@ class TestTradeModelLine(TestTradeModelLineMixin):
self
.
assertEquals
(
str
(
abs
(
line_dict
[
'income_expense'
])),
self
.
assertEquals
(
str
(
abs
(
line_dict
[
'income_expense'
])),
str
(
rounded_total_price
+
rounded_discount_price
))
str
(
rounded_total_price
+
rounded_discount_price
))
def
stepPackingListBuilderAlarm
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
self
.
portal
.
portal_alarms
.
packing_list_builder_alarm
.
activeSense
()
def
stepInvoiceBuilderAlarm
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
self
.
portal
.
portal_alarms
.
invoice_builder_alarm
.
activeSense
()
###
###
## Test cases
## Test cases
##
##
...
@@ -587,6 +598,9 @@ class TestTradeModelLine(TestTradeModelLineMixin):
...
@@ -587,6 +598,9 @@ class TestTradeModelLine(TestTradeModelLineMixin):
order
.
confirm
()
order
.
confirm
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
stepPackingListBuilderAlarm
()
transaction
.
commit
()
self
.
tic
()
packing_list
,
=
order
.
getCausalityRelatedValueList
(
packing_list
,
=
order
.
getCausalityRelatedValueList
(
portal_type
=
self
.
packing_list_portal_type
)
portal_type
=
self
.
packing_list_portal_type
)
...
@@ -915,6 +929,9 @@ return lambda *args, **kw: 1""")
...
@@ -915,6 +929,9 @@ return lambda *args, **kw: 1""")
order
.
confirm
()
order
.
confirm
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
stepPackingListBuilderAlarm
()
transaction
.
commit
()
self
.
tic
()
packing_list
=
order
.
getCausalityRelatedValue
(
packing_list
=
order
.
getCausalityRelatedValue
(
portal_type
=
self
.
packing_list_portal_type
)
portal_type
=
self
.
packing_list_portal_type
)
...
@@ -924,7 +941,9 @@ return lambda *args, **kw: 1""")
...
@@ -924,7 +941,9 @@ return lambda *args, **kw: 1""")
packing_list
.
start
()
packing_list
.
start
()
packing_list
.
stop
()
packing_list
.
stop
()
packing_list
.
deliver
()
packing_list
.
deliver
()
transaction
.
commit
()
self
.
tic
()
self
.
stepInvoiceBuilderAlarm
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
...
...
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