19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:02 +01:00
parent 62d197ac8b
commit 184bb0e321
667 changed files with 691406 additions and 239886 deletions

View file

@ -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(),