From 6bf849930f64b9a699fbc1b77c40c01c69508216 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 27 Nov 2020 14:38:29 +0100 Subject: [PATCH] [IMP] improve error message --- .../wizard/permanent_lock_date_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py index 968beb3ca..ad6ed14f4 100644 --- a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py +++ b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py @@ -18,7 +18,7 @@ class PermanentLockDateWizard(models.TransientModel): if (company.permanent_lock_date and self.lock_date < company.permanent_lock_date): raise UserError( - _("You cannot set the permanent lock date in the past.") + _("You cannot set the permanent lock date before the already set one.") ) # Then check if unposted moves are present before the date moves = self.env['account.move'].search(