[IMP] improve error message

This commit is contained in:
houssine
2020-11-27 14:38:29 +01:00
parent 107123d1a6
commit 6bf849930f

View File

@@ -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(