2
0
account-financial-tools/account_asset_management/models
Bejaoui Souheil 8fa0de5226 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-12-24 00:42:21 +01:00
..
__init__.py [MIG] account_asset_management: Migration to 12.0 2022-12-24 00:42:21 +01:00
account_account.py [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00
account_asset_line.py Included PR #828 Fix computation of depreciation lines when having multiple assets in invoice 2022-12-24 00:42:21 +01:00
account_asset_profile.py [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00
account_asset_recompute_trigger.py [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00
account_asset.py [MIG] account_asset_management: Migration to 12.0 2022-12-24 00:42:21 +01:00
account_invoice.py [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00
account_move.py Finish 12.0 migration of account_asset_management 2022-12-24 00:42:21 +01:00
date_range.py [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00
res_config_settings.py [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00