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
Léo-Paul Géneau
erp5
Commits
2ba67a83
Commit
2ba67a83
authored
Dec 09, 2011
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tolerate pre-existing currencies.
parent
add524b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Banking/tests/TestERP5BankingMixin.py
product/ERP5Banking/tests/TestERP5BankingMixin.py
+2
-1
No files found.
product/ERP5Banking/tests/TestERP5BankingMixin.py
View file @
2ba67a83
...
...
@@ -309,7 +309,8 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
#currency_list = (('EUR', 'Euro', 1/650., 'USD'), ('USD', 'Dollar', 650., 'EUR'))
# first create currency
for
currency_id
,
title
,
base_price
,
cell_price
,
price_currency
in
currency_list
:
currency
=
self
.
getCurrencyModule
().
newContent
(
id
=
currency_id
,
title
=
title
,
reference
=
currency_id
)
self
.
_maybeNewContent
(
self
.
getCurrencyModule
(),
id
=
currency_id
,
title
=
title
,
reference
=
currency_id
)
if
only_currency
:
return
...
...
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