mirror of
https://github.com/bringout/oca-ocb-report.git
synced 2026-04-23 05:42:08 +02:00
19.0 vanilla
This commit is contained in:
parent
62d197ac8b
commit
184bb0e321
667 changed files with 691406 additions and 239886 deletions
|
|
@ -28,38 +28,6 @@ class TestCurrencyRates(TransactionCase):
|
|||
cls.env.user.company_id = eur_company
|
||||
cls.usd_company_id = usd_company.id
|
||||
|
||||
def test_get_currencies_for_spreadsheet(self):
|
||||
self.assertEqual(
|
||||
self.env["res.currency"].get_currencies_for_spreadsheet(["MC1", "MC2"]),
|
||||
[
|
||||
{
|
||||
"code": "MC1",
|
||||
"symbol": ":D",
|
||||
"decimalPlaces": 3,
|
||||
"position": "after",
|
||||
},
|
||||
{
|
||||
"code": "MC2",
|
||||
"symbol": "§",
|
||||
"decimalPlaces": 2,
|
||||
"position": "after",
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
self.env["res.currency"].get_currencies_for_spreadsheet(["ProbablyNotACurrencyName?", "MC2"]),
|
||||
[
|
||||
None,
|
||||
{
|
||||
"code": "MC2",
|
||||
"symbol": "§",
|
||||
"decimalPlaces": 2,
|
||||
"position": "after",
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
def test_get_company_currency_for_spreadsheet(self):
|
||||
self.assertEqual(
|
||||
self.env["res.currency"].get_company_currency_for_spreadsheet(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue