[FIX] use osv.Model

This commit is contained in:
Lorenzo Battistini
2013-02-15 18:49:35 +01:00
parent bfaf65f84c
commit d11c3e7ca4
2 changed files with 3 additions and 3 deletions

View File

@@ -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={}):

View File

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