summaryrefslogtreecommitdiff
path: root/odoo/addons/base/models
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2020-08-19 10:51:09 +0000
committerRichard Mathot <rim@odoo.com>2020-08-19 10:51:09 +0000
commit4fe6936fcd6f5a7ca7b40a7e5e785fb14799fbd6 (patch)
tree4c9fa41422b9c589a2ca05eef294af47d5b995be /odoo/addons/base/models
parent13e3f8affce9984d4cb22cada14fb65b498129ba (diff)
[IMP] base: error message understandable by humans
closes odoo/odoo#56139 Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
Diffstat (limited to 'odoo/addons/base/models')
-rw-r--r--odoo/addons/base/models/ir_module.py5
1 files 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()