'Override of orm\'s name_create method for partners. The purpose is
to handle some basic formats to create partners using the
name_create.
If only an email address is received and that the regex cannot find
a name, the name will have the email value.
If \'force_email\' key in context: must find the email address.'

@api.model
def name_create(self, name):

    (name, email) = self._parse_partner_name(name)
    if (self._context.get('force_email') and (not email)):
        raise UserError(_("Couldn't    create    contact    without    email    address!"))
    if ((not name) and email):
        name = email
    partner = self.create({self._rec_name: (name or email), 'email': (email or self.env.context.get('default_email', False))})
    return partner.name_get()[0]
