diff --git a/openerp/tools/yaml_import.py b/openerp/tools/yaml_import.py index 51f7a84bb38..8f37b3e7f53 100644 --- a/openerp/tools/yaml_import.py +++ b/openerp/tools/yaml_import.py @@ -425,7 +425,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