Skip to content

Commit

Permalink
[FIX] tools: accept multilines on_change
Browse files Browse the repository at this point in the history
Allow to write on_change on several lines (accepted by view parser but was not
by yaml parser, making false positive at 595216b)
  • Loading branch information
mart-e committed Jul 7, 2015
1 parent 9fa7624 commit 3add4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/tools/yaml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def process_val(key, val):

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
Expand Down

0 comments on commit 3add4f6

Please sign in to comment.