[FIX] account_asset_management: fix _check_dates

This commit is contained in:
ps-tubtim
2021-08-19 02:25:08 +07:00
committed by sbiosca-s73
parent 8dcb1316e1
commit 271e22e307

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."))