[IMP] use more common form of imports orm.Model

This commit is contained in:
Guewen Baconnier
2013-01-14 09:35:42 +01:00
parent e8cf906a9b
commit 70811a9d2d

View File

@@ -18,11 +18,10 @@
# #
############################################################################## ##############################################################################
from openerp.osv import fields from openerp.osv import fields, orm
from openerp.osv.orm import Model
class AccountMove(Model): class AccountMove(orm.Model):
_inherit = "account.move" _inherit = "account.move"
def _check_fiscal_year(self, cr, uid, ids): 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' _inherit = 'account.move.line'
def _check_currency_and_amount(self, cr, uid, ids, context=None): def _check_currency_and_amount(self, cr, uid, ids, context=None):