'Create a record with ``vals``, and create a corresponding alias.'

@api.model
def create(self, vals):

    record = super(AliasMixin, self.with_context(alias_model_name=self.get_alias_model_name(vals), alias_parent_model_name=self._name)).create(vals)
    record.alias_id.sudo().write(record.get_alias_values())
    return record
