mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[9.0] FIX the parametres to search in run_currency_update function
This commit is contained in:
@@ -187,7 +187,7 @@ class CurrencyRateUpdateService(models.Model):
|
||||
@api.multi
|
||||
def run_currency_update(self):
|
||||
# Update currency at the given frequence
|
||||
services = self.search([('next_run', '=', fields.Date.today())])
|
||||
services = self.search([('next_run', '<=', fields.Date.today())])
|
||||
services.with_context(cron=True).refresh_currency()
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user