[FIX] crm: fixed a call to command_re, now in tools.mail.

bzr revid: tde@openerp.com-20121119132141-6zikqzuxlxap550f
This commit is contained in:
Thibault Delavallée 2012-11-19 14:21:41 +01:00
parent 66afff1b52
commit f35df2fdc8
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ class crm_lead(base_stage, format_address, osv.osv):
}
for line in msg.get('body', '').split('\n'):
line = line.strip()
res = tools.misc.command_re.match(line)
res = tools.command_re.match(line)
if res and maps.get(res.group(1).lower()):
key = maps.get(res.group(1).lower())
update_vals[key] = res.group(2).lower()