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