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"