':param str model: name of the model on which to whitelist fields
:param list(str) fields: list of fields to whitelist on the model
:return: nothing of import'

@api.model
def formbuilder_whitelist(self, model, fields):

    if (not fields):
        return False
    if (not self.env['res.users'].has_group('website.group_website_designer')):
        return False
    self.env.cr.execute('UPDATE    ir_model_fields    SET    website_form_blacklisted=false    WHERE    model=%s    AND    name    in    %s', (model, tuple(fields)))
    return True
