[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.
This commit is contained in:
Jordi Ballester
2022-01-11 08:47:52 +01:00
committed by manu
parent 60f5d32fbd
commit a9c2e5e977

View File

@@ -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."
/>
<field