From 70811a9d2d022a86ec36e7f36b43b8606caf3fa9 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Mon, 14 Jan 2013 09:35:42 +0100 Subject: [PATCH] [IMP] use more common form of imports orm.Model --- account_constraints/account_constraints.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/account_constraints/account_constraints.py b/account_constraints/account_constraints.py index 96a3e6d65..b9153e4b4 100644 --- a/account_constraints/account_constraints.py +++ b/account_constraints/account_constraints.py @@ -18,11 +18,10 @@ # ############################################################################## -from openerp.osv import fields -from openerp.osv.orm import Model +from openerp.osv import fields, orm -class AccountMove(Model): +class AccountMove(orm.Model): _inherit = "account.move" def _check_fiscal_year(self, cr, uid, ids): @@ -41,7 +40,7 @@ class AccountMove(Model): ] -class AccountMoveLine(Model): +class AccountMoveLine(orm.Model): _inherit = 'account.move.line' def _check_currency_and_amount(self, cr, uid, ids, context=None):