From 3add4f665c11d75e40875341419ba5788a2f7a82 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 7 Jul 2015 15:36:15 +0200 Subject: [PATCH] [FIX] tools: accept multilines on_change Allow to write on_change on several lines (accepted by view parser but was not by yaml parser, making false positive at 595216b) --- openerp/tools/yaml_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/yaml_import.py b/openerp/tools/yaml_import.py index 264ea65cba1..b26943b4d66 100644 --- a/openerp/tools/yaml_import.py +++ b/openerp/tools/yaml_import.py @@ -427,7 +427,7 @@ class YamlInterpreter(object): if not el.attrib.get('on_change', False): continue - match = re.match("([a-z_1-9A-Z]+)\((.*)\)", el.attrib['on_change']) + match = re.match("([a-z_1-9A-Z]+)\((.*)\)", el.attrib['on_change'], re.DOTALL) assert match, "Unable to parse the on_change '%s'!" % (el.attrib['on_change'], ) # creating the context