From 27910b6ac7049852804af40d979b045ea97ea7da Mon Sep 17 00:00:00 2001 From: Joel Grand-Guillaume Date: Fri, 11 Jan 2013 09:43:29 +0100 Subject: [PATCH] [IMP] Replace osv.osv by Model --- account_constraints/account_constraints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/account_constraints/account_constraints.py b/account_constraints/account_constraints.py index 6ba995a31..6d4fa5e74 100644 --- a/account_constraints/account_constraints.py +++ b/account_constraints/account_constraints.py @@ -20,9 +20,10 @@ import time from openerp.osv import fields, osv +from openerp.osv.orm import Model from openerp.tools.translate import _ -class AccountMove(osv.osv): +class AccountMove(Model): _inherit = "account.move" def _check_fiscal_year(self, cursor, user, ids): @@ -40,7 +41,7 @@ class AccountMove(osv.osv): ] -class AccountMoveLine(osv.osv): +class AccountMoveLine(Model): _inherit='account.move.line' def _check_currency_and_amount(self, cr, uid, ids, context=None):