mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_asset_management: include 'number' method_time
This commit is contained in:
@@ -110,7 +110,9 @@ class AccountAssetProfile(models.Model):
|
||||
help="Choose the method to use to compute the dates and "
|
||||
"number of depreciation lines.\n"
|
||||
" * Number of Years: Specify the number of years "
|
||||
"for the depreciation.\n",
|
||||
"for the depreciation.\n"
|
||||
" * Number of Depreciations: Fix the number of "
|
||||
"depreciation lines and the time between 2 depreciations.\n",
|
||||
)
|
||||
days_calc = fields.Boolean(
|
||||
string="Calculate by days",
|
||||
@@ -173,11 +175,10 @@ class AccountAssetProfile(models.Model):
|
||||
|
||||
@api.model
|
||||
def _selection_method_time(self):
|
||||
"""
|
||||
Install the 'account_asset_management_method_number_end' to enable the
|
||||
'Number' and 'End' Time Methods.
|
||||
"""
|
||||
return [("year", _("Number of Years or end date"))]
|
||||
return [
|
||||
("year", _("Number of Years or end date")),
|
||||
("number", _("Number of Depreciations")),
|
||||
]
|
||||
|
||||
@api.constrains("method", "method_time")
|
||||
def _check_method(self):
|
||||
|
||||
Reference in New Issue
Block a user