[9.0] FIX the parametres to search in run_currency_update function

This commit is contained in:
nicomacr
2017-04-27 12:57:21 -03:00
parent fa4b00df6e
commit 278814cc0e

View File

@@ -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