(
        self, table, depreciation_start_date, depreciation_stop_date, line_dates
    )
Simulate the computation like year one.
Simulate the computation like year one.
Simulate the computation like year one .
def _compute_depreciation_table_lines(
        self, table, depreciation_start_date, depreciation_stop_date, line_dates
    ):
        """"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)
        super(AccountAssetAsset, obj)._compute_depreciation_table_lines(
            table,
            depreciation_start_date,
            depreciation_stop_date,
            line_dates,
        )
        if is_changed:
            self.with_context(asset_validate_from_write=True).method_time = "percentage"
def _compute_depreciation_table_lines ( self , table , depreciation_start_date , depreciation_stop_date , line_dates ) : 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 ) super ( AccountAssetAsset , obj ) . _compute_depreciation_table_lines ( table , depreciation_start_date , depreciation_stop_date , line_dates , ) if is_changed : self . with_context ( asset_validate_from_write = True ) . method_time = "percentage"