[FIX] account_asset_management: fix _check_dates

This commit is contained in:
ps-tubtim
2021-08-19 02:25:08 +07:00
committed by manu
parent 9c304e4db1
commit 97079717ad

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