[MIG] account_asset_batch_compute: Migration to 14.0

This commit is contained in:
Olga Marco
2022-01-12 10:05:38 +01:00
parent af97703e31
commit 2941040086
3 changed files with 2 additions and 9 deletions

View File

@@ -5,7 +5,7 @@
"name": "Account Asset Batch Compute",
"summary": """
Add the possibility to compute assets in batch""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,ForgeFlow,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",

View File

@@ -40,13 +40,6 @@ class TestAccountAssetBatchCompute(TransactionCase):
"name": "Test",
}
)
self.fiscal_year = self.env["account.fiscal.year"].create(
{
"name": "FY",
"date_from": time.strftime("2019-01-01"),
"date_to": time.strftime("2019-12-31"),
}
)
self.asset01 = self.asset_model.create(
{
"name": "test asset",

View File

@@ -21,7 +21,7 @@ class AccountAssetCompute(models.TransientModel):
self.date_end,
)
job = self.with_delay(description=description).asset_compute()
return u"Job created with uuid {}".format(job.uuid)
return "Job created with uuid {}".format(job.uuid)
else:
return super(
AccountAssetCompute, self.with_context(asset_batch_processing=True)