From 6d428fa582ec6111ce504e5d0d1a555dae15f949 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Tue, 11 Jan 2022 08:47:52 +0100 Subject: [PATCH] [IMP] account_asset_management: assets can be removed irrespective of the Time Method used It does not make sense that you cannot remove an asset where the time method used is not based on number of years or end date. If you choose, for example, to depreciate the asset using the time method 'Number of depreciations' you will want to remove the asset when it has been fully depreciated. --- account_asset_management/views/account_asset.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_asset_management/views/account_asset.xml b/account_asset_management/views/account_asset.xml index 243264c2..6614b98c 100644 --- a/account_asset_management/views/account_asset.xml +++ b/account_asset_management/views/account_asset.xml @@ -25,7 +25,7 @@ string="Remove" type="object" groups="account.group_account_manager" - attrs="{'invisible':['|', ('method_time', '!=', 'year'), ('state', 'not in', ['open', 'close'])]}" + attrs="{'invisible':[('state', 'not in', ['open', 'close'])]}" help="Asset removal." />