From 3aa36a17f6286d7f1ebcb8f21b45d40a7567cc67 Mon Sep 17 00:00:00 2001 From: Olga Marco Date: Wed, 30 Jun 2021 10:27:44 +0200 Subject: [PATCH] [FIX] account_asset_management: Check method end is defined in order to raise an Exception --- account_asset_management/models/account_asset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_asset_management/models/account_asset.py b/account_asset_management/models/account_asset.py index d2a5a0fc0..b9fb1a582 100644 --- a/account_asset_management/models/account_asset.py +++ b/account_asset_management/models/account_asset.py @@ -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."))