2
0

[FIX] account_asset_management: fix _check_dates

This commit is contained in:
ps-tubtim 2021-08-19 02:25:08 +07:00 committed by Rodrigo
parent 6d49df0ddf
commit 1099b85fe7

View File

@ -406,6 +406,7 @@ class AccountAsset(models.Model):
if self.filtered(
lambda a: a.method_time == "year"
and not a.method_number
and a.method_end
and a.method_end <= a.date_start
):
raise UserError(_("The Start Date must precede the Ending Date."))