Fix use of Date vs Datetime for method_number_end

This commit is contained in:
Akim Juillerat
2018-10-19 10:40:07 +02:00
parent 07f695d303
commit ce1d687a42

View File

@@ -726,7 +726,7 @@ class AccountAsset(models.Model):
depreciation_stop_date = depreciation_start_date + \
relativedelta(years=self.method_number, days=-1)
elif self.method_time == 'end':
depreciation_stop_date = fields.Date.from_string(
depreciation_stop_date = fields.Datetime.from_string(
self.method_end)
return depreciation_stop_date