[MIG] account_asset_batch_compute: Migration to 15.0

This commit is contained in:
Olga Marco
2022-05-19 11:28:57 +02:00
parent fd180d9748
commit df55f07d1b
2 changed files with 7 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
"name": "Account Asset Batch Compute",
"summary": """
Add the possibility to compute assets in batch""",
"version": "14.0.1.0.0",
"version": "15.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

@@ -15,10 +15,12 @@ class AccountAsset(models.Model):
results = []
log_error = ""
for record in self:
description = _("Creating move for asset with id %s to %s") % (
record.id,
date_end,
)
description = _(
"Creating move for asset with id %(id)s to %(date_end)s"
) % {
"id": record.id,
"date_end": date_end,
}
record.with_delay(description=description)._compute_entries(
date_end, check_triggers=check_triggers
)