[10.0][MIG]account_asset_management suite refactoring + 10.0 port

This commit is contained in:
Luc De Meyer
2018-08-05 20:33:56 +02:00
parent 7bdbc9ada2
commit c56a8f963b
230 changed files with 55238 additions and 8411 deletions

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Copyright 2009-2018 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountAsset(models.Model):
_inherit = 'account.asset'
method_number = fields.Integer(
string='Number',
help="The meaning of this parameter depends on the Time Method.\n"
" * Number of Years: Specify the number of years "
"for the depreciation.\n"
" * Number of Depreciations: Fix the number of "
"depreciation lines and the time between 2 depreciations.\n"
" * Ending Date: Choose the time between 2 depreciations "
"and the date the depreciations won't go beyond.")
method_time = fields.Selection(
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"
" * Number of Depreciations: Fix the number of "
"depreciation lines and the time between 2 depreciations.\n"
" * Ending Date: Choose the time between 2 depreciations "
"and the date the depreciations won't go beyond.")