mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] use more common form of imports orm.Model
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user