Browse Source

simple code

pull/1/head^2
Ilnur Gallyamov 10 years ago
parent
commit
84040dfcab
  1. 3
      models.py

3
models.py

@ -17,7 +17,6 @@ class res_partner_strip_email(models.Model):
return super(res_partner_strip_email, self).create(vals) return super(res_partner_strip_email, self).create(vals)
def _check_email_field(self, vals): def _check_email_field(self, vals):
if not isinstance(vals['email'], bool) and 'email' in vals or \
isinstance(vals['email'], bool) and vals['email']:
if vals.get('email'):
vals['email'] = vals['email'].strip() vals['email'] = vals['email'].strip()
return vals return vals
Loading…
Cancel
Save