mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] use osv.Model
This commit is contained in:
@@ -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={}):
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user