Commit Graph

66 Commits

Author SHA1 Message Date
Joan Sisquella
8ca62153fe [ADD] allows setting a depreciation ending date 2022-04-13 10:57:57 +02:00
Saran
91167ba799 [ADD] options 'use_leap_years' 2022-04-13 10:57:57 +02:00
Saran
8f7d81d3dd [12.0][IMP] account_asset_management 2022-04-13 10:57:57 +02:00
Pedro M. Baeza
5358104889 [MIG+FIX+IMP] account_asset_management: Rework migration scripts + make asset group m2m 2022-04-13 10:57:57 +02:00
Henrik Norlin
aa9a6be74d [IMP] removed type, parent_id, parent_path, child_ids from account.asset & account.asset.profile 2022-04-13 10:57:57 +02:00
Pedro M. Baeza
7ebeeff4a3 [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.
2022-04-13 10:57:57 +02:00
Luc De Meyer
8d2424e84a [FIX][12.0]asset_management - fix date string compare 2022-04-13 10:57:57 +02:00
Pedro M. Baeza
6e64ea2dea [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.
2022-04-13 10:57:56 +02:00
Henrik
4fae2e0ae9 [12.0][FIX] account_asset_management: date_range -> account_fiscal_year, account_analytic_id without domain 2022-04-13 10:57:56 +02:00
Bejaoui Souheil
e7f2beb6fb Finish 12.0 migration of account_asset_management
* account_asset: Do not loop on all the lines to search for one linked asset

Before this change, the use of `mapped` on self did loop on all the move
lines that are included in self to get the assets, what could be very
costly for a simple write on a lot of move lines. As the goal is to raise
an error only if at least one move is linked to an asset, we break the
loop if the condition is fulfilled.

* performance improvement

* [RMV] - Remove useless dependency

In 12.0 account_fiscal_year is a standard feature no need to depend on oca
module account_fiscal_year
2022-04-13 10:57:56 +02:00
Maxence Groine
8b8831980c Included PR #828 Fix computation of depreciation lines when having multiple assets in invoice 2022-04-13 10:57:56 +02:00
Henrik Norlin
b67fe0b79c [MIG] account_asset_management: Migration to 12.0 2022-04-13 10:57:56 +02:00
Akim Juillerat
93e4756698 [MIG] account_asset_management: Migration to 11.0 2022-04-13 10:57:56 +02:00
Luc De Meyer
8ad64ceb73 [FIX] account_asset_management: Test data + onchange 2022-04-13 10:57:56 +02:00
Akim Juillerat
e89dc8ed20 [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
2022-04-13 10:57:56 +02:00
Luc De Meyer
2fe06219b6 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2022-04-13 10:57:56 +02:00