Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
fe2db964
Unverified
Commit
fe2db964
authored
7 years ago
by
Richard Mathot
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] website_event_sale: test is now robust to multicurrency
parent
6662cdfc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/website_event_sale/tests/test_ui.py
+6
-0
6 additions, 0 deletions
addons/website_event_sale/tests/test_ui.py
with
6 additions
and
0 deletions
addons/website_event_sale/tests/test_ui.py
+
6
−
0
View file @
fe2db964
...
...
@@ -7,6 +7,12 @@ class TestUi(odoo.tests.HttpCase):
at_install
=
False
def
test_admin
(
self
):
# Seen that:
# - this test relies on demo data that are entirely in USD (pricelists)
# - that main demo company is gelocated in US
# - that this test awaits for hardcoded USDs amount
# we have to force company currency as USDs only for this test
self
.
env
.
ref
(
'
base.main_company
'
).
write
({
'
currency_id
'
:
self
.
env
.
ref
(
'
base.USD
'
)})
self
.
phantom_js
(
"
/
"
,
"
odoo.__DEBUG__.services[
'
web_tour.tour
'
].run(
'
event_buy_tickets
'
)
"
,
"
odoo.__DEBUG__.services[
'
web_tour.tour
'
].tours.event_buy_tickets.ready
"
,
login
=
"
admin
"
)
def
test_demo
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment