addons14/account_asset_management/models/account_asset.py
def _get_amount_linear(
        self, depreciation_start_date, depreciation_stop_date, entry
    ):
        """
        Override this method if you want to compute differently the
        yearly amount.
        """
        if not self.use_leap_years and self.method_number:
            return self.depreciation_base / self.method_number
        year = entry["date_stop"].year
        cy_days = calendar.isleap(year) and 366 or 365
        days = (depreciation_stop_date - depreciation_start_date).days + 1
        return (self.depreciation_base / days) * cy_days

        Override this method if you want to compute differently the
        yearly amount.
        
Override this method if you want to compute differently the
yearly amount.
Override this method if you want to compute differently the yearly amount .
def _get_amount_linear(
        self, depreciation_start_date, depreciation_stop_date, entry
    ):
        if not self.use_leap_years and self.method_number:
            return self.depreciation_base / self.method_number
        year = entry["date_stop"].year
        cy_days = calendar.isleap(year) and 366 or 365
        days = (depreciation_stop_date - depreciation_start_date).days + 1
        return (self.depreciation_base / days) * cy_days
def _get_amount_linear ( self , depreciation_start_date , depreciation_stop_date , entry ) : if not self . use_leap_years and self . method_number : return self . depreciation_base / self . method_number year = entry [ "date_stop" ] . year cy_days = calendar . isleap ( year ) and 366 or 365 days = ( depreciation_stop_date - depreciation_start_date ) . days + 1 return ( self . depreciation_base / days ) * cy_days
Override this method if you want to compute differently the
yearly amount.
Override this method if you want to compute differently the yearly amount .
"""
        Override this method if you want to compute differently the
        yearly amount.
        """
self
depreciation_start_date
depreciation_stop_date
entry