Skip to content

Commit

Permalink
Merge pull request #73 from onesteinbv/16.0-update-coingecko_module
Browse files Browse the repository at this point in the history
Made provider mandatory for rate provider mappings and updated test scripts for currency_rate_update_coingecko module
  • Loading branch information
ByteMeAsap authored Nov 27, 2024
2 parents 90fe723 + ec6e183 commit 9f26dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ def setUpClass(cls):
cls.today = fields.Date.today()
cls.eur_currency = cls.env.ref("base.EUR")
cls.company = cls.Company.create(
{"name": "Test company", "currency_id": cls.eur_currency.id}
{
"name": "Test company",
"currency_id": cls.eur_currency.id,
"currency_rates_autoupdate": True,
}
)
cls.lnk_currency = cls.Currency.create({"name": "LINK", "symbol": "LNK"})
cls.coingecko_provider = cls.CurrencyRateProvider.search(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ResCurrencyRateProviderMapping(models.Model):
string="Provider",
comodel_name="res.currency.rate.provider",
ondelete="restrict",
required=True,
)
provider_reference = fields.Char(
required=True,
Expand Down

0 comments on commit 9f26dbd

Please sign in to comment.