OCA/account-financial-tools

[14.0] account_asset_management: Asset depreciation date according to fiscal lock date

TeoGoddet opened this issue · 0 comments

Module

account_asset_management

Describe the bug

The depreciation for type=year are made one 31.12 no matter what.
It should create them on the last day of the fiscal year,
This function seems correct

def _get_fy_duration(self, fy, option="days"):

but then it seems not called the right way :

first_fy_duration = self._get_fy_duration(fy, option="days")