From c76247332284aaa1a73ba8676d3afa21433fed32 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] the asset 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 879b806f9..745ef96b5 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." />