Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
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
Hide 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):
packing_list
.
stop
()
transaction
.
commit
()
self
.
tic
()
self
.
stepInvoiceBuilderAlarm
()
transaction
.
commit
()
self
.
tic
()
invoice
,
=
packing_list
.
getCausalityRelatedValueList
(
portal_type
=
self
.
invoice_portal_type
)
...
...
@@ -475,6 +478,14 @@ class TestTradeModelLine(TestTradeModelLineMixin):
self
.
assertEquals
(
str
(
abs
(
line_dict
[
'income_expense'
])),
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
##
...
...
@@ -587,6 +598,9 @@ class TestTradeModelLine(TestTradeModelLineMixin):
order
.
confirm
()
transaction
.
commit
()
self
.
tic
()
self
.
stepPackingListBuilderAlarm
()
transaction
.
commit
()
self
.
tic
()
packing_list
,
=
order
.
getCausalityRelatedValueList
(
portal_type
=
self
.
packing_list_portal_type
)
...
...
@@ -915,6 +929,9 @@ return lambda *args, **kw: 1""")
order
.
confirm
()
transaction
.
commit
()
self
.
tic
()
self
.
stepPackingListBuilderAlarm
()
transaction
.
commit
()
self
.
tic
()
packing_list
=
order
.
getCausalityRelatedValue
(
portal_type
=
self
.
packing_list_portal_type
)
...
...
@@ -924,7 +941,9 @@ return lambda *args, **kw: 1""")
packing_list
.
start
()
packing_list
.
stop
()
packing_list
.
deliver
()
transaction
.
commit
()
self
.
tic
()
self
.
stepInvoiceBuilderAlarm
()
transaction
.
commit
()
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