mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user