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 15.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": "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",
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user