mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] Replace osv.osv by Model
This commit is contained in:
@@ -20,9 +20,10 @@
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
from openerp.osv import fields, osv
|
from openerp.osv import fields, osv
|
||||||
|
from openerp.osv.orm import Model
|
||||||
from openerp.tools.translate import _
|
from openerp.tools.translate import _
|
||||||
|
|
||||||
class AccountMove(osv.osv):
|
class AccountMove(Model):
|
||||||
_inherit = "account.move"
|
_inherit = "account.move"
|
||||||
|
|
||||||
def _check_fiscal_year(self, cursor, user, ids):
|
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'
|
_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):
|
||||||
|
|||||||
Reference in New Issue
Block a user