[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.
This commit is contained in:
Jordi Ballester
2022-01-11 08:47:52 +01:00
parent f0edd8590e
commit c762473322

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