Commit Graph

17 Commits

Author SHA1 Message Date
ernestotejeda
49e6643094 [MIG] account_asset_management: Migration to 13.0 2021-01-13 07:53:35 +00:00
ernestotejeda
22b491e1c0 [IMP] account_asset_management: black, isort 2021-01-13 07:53:35 +00:00
Luc De Meyer
55aa4cad58 [12.0][FIX]traceback when deviating FY 2021-01-13 07:53:35 +00:00
Iván Todorovich
ac08a99fa3 [12.0][FIX][account_asset_management] local variable 'asset' referenced before assignment
tools/account_asset_management/models/account_asset.py", line 970, in _compute_entries
    % (asset.name, asset.code) or asset.name
UnboundLocalError: local variable 'asset' referenced before assignment
2021-01-13 07:53:35 +00:00
Joan Sisquella
810ac3ff5c [ADD] allows setting a depreciation ending date 2021-01-13 07:53:35 +00:00
Saran
979279dd47 [ADD] options 'use_leap_years' 2021-01-13 07:53:35 +00:00
Saran
66f345e2f3 [12.0][IMP] account_asset_management 2021-01-13 07:53:35 +00:00
Pedro M. Baeza
2dffd4070d [MIG+FIX+IMP] account_asset_management: Rework migration scripts + make asset group m2m 2021-01-13 07:53:35 +00:00
Henrik Norlin
187846d3ee [IMP] removed type, parent_id, parent_path, child_ids from account.asset & account.asset.profile 2021-01-13 07:53:35 +00:00
Pedro M. Baeza
a483203c37 [FIX] account_asset_management: Don't depend on account.fiscal.year created records
* There's no need of forcing to create such records if your fiscal years are regular ones.
* FY date range computation duplicates code that is already on core.
* DummyFY is a good idea, but was not used at all. Now it is.
2021-01-13 07:53:35 +00:00
Pedro M. Baeza
ca270fe67e [FIX] account_asset_management: Provide hook _compute_depreciation_amount_per_fiscal_year
This way, other method_time mechanism like localization ones is able to overwrite it.

You also got an error of variable `number` not set due to previous code. Although no
alternate implementation for a new method_time, now you don't have any error,
fallbacking to standard proportional repartition.
2021-01-13 07:53:35 +00:00
Henrik
8e3f952a75 [12.0][FIX] account_asset_management: date_range -> account_fiscal_year, account_analytic_id without domain 2021-01-13 07:53:34 +00:00
Henrik Norlin
637b1fa013 [MIG] account_asset_management: Migration to 12.0 2021-01-13 07:53:34 +00:00
Akim Juillerat
b08d477d8f [MIG] account_asset_management: Migration to 11.0 2021-01-13 07:53:34 +00:00
Luc De Meyer
6a7789526e [FIX] account_asset_management: Test data + onchange 2021-01-13 07:53:34 +00:00
Akim Juillerat
c7380f6453 [FIX+IMP] account_asset_management: 2 things:
* Fix compute methods dependencies and small optimizations
* Rename demo file to test and move it into the right folder
2021-01-13 07:53:34 +00:00
Luc De Meyer
a1650a3028 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2021-01-13 07:53:34 +00:00