summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-08-14 12:03:54 +0200
committerOlivier Dony <odo@openerp.com>2012-08-14 12:03:54 +0200
commitfcdd930396ac2bcdb88a9bcdfa5e0f1d0a896efc (patch)
tree04c1e7bd5cad51ef5a130704dd833cf75aa51017 /addons
parent8fac3ae62e77293411be288bcfd4b5a46e17fcb5 (diff)
[IMP] mail.alias: use hyphen instead of underscore for replacing invalid chars, looks better for mail aliases
bzr revid: odo@openerp.com-20120814100354-2sn0505046wv27ot
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/mail_alias.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/mail_alias.py b/addons/mail/mail_alias.py
index 430cdb930b4..82b20f39480 100644
--- a/addons/mail/mail_alias.py
+++ b/addons/mail/mail_alias.py
@@ -135,7 +135,7 @@ class mail_alias(osv.Model):
make it unique, and the ``alias_model_id`` value will set to the
model ID of the ``model_name`` value, if provided,
"""
- alias_name = re.sub(r'[^\w+]', '_', remove_accents(vals['alias_name'])).lower()
+ alias_name = re.sub(r'[^\w+]', '-', remove_accents(vals['alias_name'])).lower()
alias_name = self._find_unique(cr, uid, alias_name, context=context)
vals['alias_name'] = alias_name
if model_name: