2
0

[MIG][12.0] account_asset_batch_compute

This commit is contained in:
Enric Tobella 2020-03-09 11:57:35 +01:00 committed by Javier Iniesta
parent bdde46aab4
commit fe4a2ef3f1
3 changed files with 6 additions and 14 deletions

View File

@ -5,12 +5,12 @@
'name': 'Account Asset Batch Compute',
'summary': """
Add the possibility to compute assets in batch""",
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'license': 'AGPL-3',
'author': 'ACSONE SA/NV,'
'Eficent,'
'Odoo Community Association (OCA)',
'website': 'www.acsone.eu',
'website': 'https://github.com/OCA/account-financial-tools',
'depends': [
'account_asset_management',
'queue_job',

View File

@ -1 +1 @@
from . import account_asset
from . import account_asset

View File

@ -26,12 +26,6 @@ class TestAccountAssetBatchCompute(TransactionCase):
'name': 'Test Regular',
'type': 'other',
})
self.view_asset = self.asset_model.create({
'type': 'view',
'state': 'open',
'name': 'view',
'purchase_value': 0.0,
})
self.account = self.env['account.account'].create({
'name': 'Test account',
'code': 'TAC',
@ -43,18 +37,16 @@ class TestAccountAssetBatchCompute(TransactionCase):
'type': 'general',
})
self.profile = self.asset_profile_model.create({
'parent_id': self.view_asset.id,
'account_expense_depreciation_id': self.account.id,
'account_asset_id': self.account.id,
'account_depreciation_id': self.account.id,
'journal_id': self.journal.id,
'name': "Test",
})
self.fiscal_year = self.env['date.range'].create({
'type_id': self.ref('account_fiscal_year.fiscalyear'),
self.fiscal_year = self.env['account.fiscal.year'].create({
'name': 'FY',
'date_start': time.strftime('2019-01-01'),
'date_end': time.strftime('2019-12-31'),
'date_from': time.strftime('2019-01-01'),
'date_to': time.strftime('2019-12-31'),
})
self.asset01 = self.asset_model.create({
'name': 'test asset',