mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_asset_batch_compute: Migration to 14.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user