(
        self, table, line_dates, depreciation_start_date, depreciation_stop_date
    )
return table
Simulate the computation like year one.
Simulate the computation like year one.
Simulate the computation like year one .
def _compute_depreciation_amount_per_fiscal_year(
        self, table, line_dates, depreciation_start_date, depreciation_stop_date
    ):
        """"Simulate the computation like year one."""
        is_changed = self.method_time == "percentage"
        obj = self
        if is_changed:
            self.with_context(asset_validate_from_write=True).method_time = "year"
            obj = self.with_context(use_percentage=True)
        table = super(
            AccountAssetAsset, obj
        )._compute_depreciation_amount_per_fiscal_year(
            table,
            line_dates,
            depreciation_start_date,
            depreciation_stop_date,
        )
        if is_changed:
            self.with_context(asset_validate_from_write=True).method_time = "percentage"
        return table
def _compute_depreciation_amount_per_fiscal_year ( self , table , line_dates , depreciation_start_date , depreciation_stop_date ) : is_changed = self . method_time == "percentage" obj = self if is_changed : self . with_context ( asset_validate_from_write = True ) . method_time = "year" obj = self . with_context ( use_percentage = True ) table = super ( AccountAssetAsset , obj ) . _compute_depreciation_amount_per_fiscal_year ( table , line_dates , depreciation_start_date , depreciation_stop_date , ) if is_changed : self . with_context ( asset_validate_from_write = True ) . method_time = "percentage" return table