From 2c9c7e770addb152f6d424c3ea0f6ac9bcc25a56 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 12 Jul 2018 13:55:42 +0200 Subject: [PATCH] [FIX] models: correct regex for onchange_v7 Ensure, we only match the expected az-A-Z characters for old-style onchanges. The \w allowed starting with 0-9 which should be prevented. --- odoo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/models.py b/odoo/models.py index 490c6f83cde..9f69ec62d58 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -60,7 +60,7 @@ _unlink = logging.getLogger(__name__ + '.unlink') regex_order = re.compile('^(\s*([a-z0-9:_]+|"[a-z0-9:_]+")(\s+(desc|asc))?\s*(,|$))+(?