Merge PR #1229 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-09-08 10:03:12 +00:00

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