Remove self.ensure_one from @api.one.

This commit is contained in:
Fekete Mihai
2014-11-10 13:09:21 +02:00
parent b3806d4b55
commit d76addfd7a

View File

@@ -213,7 +213,6 @@ class Currency_rate_update_service(models.Model):
@api.one
def refresh_currency(self):
"""Refresh the currencies rates !!for all companies now"""
self.ensure_one()
factory = Currency_getter_factory()
curr_obj = self.env['res.currency']
rate_obj = self.env['res.currency.rate']