Commit 0846c034 authored by Christophe Francois's avatar Christophe Francois Committed by Vincent A

[s2e] Fix wrong variable name

parent 3a550ff2
......@@ -375,7 +375,7 @@ class ItemInvestment(ItemElement):
match = re.match(r'http://www.cpr-am.fr/fr/fonds_detail.php\?isin=([A-Z0-9]+)', url)
match = match or re.match(r'http://www.cpr-am.fr/particuliers/product/view/([A-Z0-9]+)', url)
if match:
self.env['code'] = m.group(1)
self.env['code'] = match.group(1)
if is_isin_valid(match.group(1)):
self.env['code_type'] = Investment.CODE_TYPE_ISIN
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment