From 4fe6936fcd6f5a7ca7b40a7e5e785fb14799fbd6 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Wed, 19 Aug 2020 10:51:09 +0000 Subject: [PATCH] [IMP] base: error message understandable by humans closes odoo/odoo#56139 Signed-off-by: Richard Mathot (rim) --- odoo/addons/base/models/ir_module.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/odoo/addons/base/models/ir_module.py b/odoo/addons/base/models/ir_module.py index 90af5844ede..84469339fce 100644 --- a/odoo/addons/base/models/ir_module.py +++ b/odoo/addons/base/models/ir_module.py @@ -580,8 +580,9 @@ class Module(models.Model): # during execution, the lock won't be released until timeout. self._cr.execute("SELECT * FROM ir_cron FOR UPDATE NOWAIT") except psycopg2.OperationalError: - raise UserError(_("The server is busy right now, module operations are not possible at" - " this time, please try again later.")) + raise UserError(_("Odoo is currently processing a scheduled action.\n" + "Module operations are not possible at this time, " + "please try again later or contact your system administrator.")) function(self) self._cr.commit()