From d11c3e7ca4e19a3f061b4a2b741f9030715b87d9 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Fri, 15 Feb 2013 18:49:35 +0100 Subject: [PATCH] [FIX] use osv.Model --- currency_rate_update/company.py | 2 +- currency_rate_update/currency_rate_update.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/currency_rate_update/company.py b/currency_rate_update/company.py index dd836f4cf..6696aa57b 100644 --- a/currency_rate_update/company.py +++ b/currency_rate_update/company.py @@ -31,7 +31,7 @@ import netsvc from openerp.osv import fields, osv -class res_company(osv.osv): +class res_company(osv.Model): """override company to add currency update""" def _multi_curr_enable(self, cr, uid, ids, field_name, arg, context={}): diff --git a/currency_rate_update/currency_rate_update.py b/currency_rate_update/currency_rate_update.py index 4c95d109b..00a8d96d4 100755 --- a/currency_rate_update/currency_rate_update.py +++ b/currency_rate_update/currency_rate_update.py @@ -50,7 +50,7 @@ from openerp.tools.translate import _ _logger = logging.getLogger(__name__) -class Currency_rate_update_service(osv.osv): +class Currency_rate_update_service(osv.Model): """Class thats tell for wich services wich currencies have to be updated""" _name = "currency.rate.update.service" @@ -110,7 +110,7 @@ class Currency_rate_update_service(osv.osv): ] -class Currency_rate_update(osv.osv): +class Currency_rate_update(osv.Model): """Class that handle an ir cron call who will update currencies based on a web url""" _name = "currency.rate.update"