OCA/account-financial-tools

[13.0] account_asset_management: created assets in closed period should be depreciated asap

AaronHForgeFlow opened this issue · 1 comments

Sometimes users just forget to create an asset at the proper time, and then, in the fiscalyear is closed then it is not possible to depreciate it properly.

Steps to reproduce:

  • Close fiscal year, e.g. 2022 at the end of December
  • Create an asset in the past year, e.g. in 01.12.2022
  • Confirm the asset: two init entries are created
  • The first one will not generate depreciation entries

IMHO the asset should be posted in the first day of the period open, in that example, on the 01.01.2023., because the asset actually started to be depreciated last year, the more we delay the depreciation the more incorrect we are.

If the community agrees I will propose a fix for that.

cc @ForgeFlow

Tested on runbot: http://oca-account-financial-tools-13-0-70a63db2a5a3.runboat.odoo-community.org/web#action=351&cids=1&id=4&menu_id=149&model=account.asset&view_type=form

2023-01-26_12-27