Impacted versions: 11.0

Steps to reproduce: Just test on [Runbot](http://289106-11-0-b95622.runbot13.odoo.com/web?debug=1#id=&view_type=form&model=res.config.settings&action=110&menu_id=4) --> Uninstall website module --> Go to the Configuration page for any module > Make any changes and save it.

Current behavior: [Odoo Server Error - Validation Error]


![](https://image.prntscr.com/image/Gx3lGxX4Qg6lsxAhGxL5SQ.png)

Even the field which was added by website module (website_id) is also not removed from the database.

![](https://image.prntscr.com/image/Wn1C8lPdTg6frBLga0ZVqQ.png)

Expected behavior: Configuration should be applied.

Video/Screenshot link (optional):


res = super(ResConfigSettings, self).get_values()
        get_param = self.env['ir.config_parameter'].sudo().get_param
        res.update(
            auth_signup_uninvited='b2c' if get_param('auth_signup.allow_uninvited', 'False').lower() == 'true' else 'b2b',
            has_google_analytics=get_param('website.has_google_analytics'),
            has_google_analytics_dashboard=get_param('website.has_google_analytics_dashboard'),
            has_google_maps=get_param('website.has_google_maps'),
            google_maps_api_key=get_param('google_maps_api_key', default=''),
        )
        return res
    def set_values(self):
        if not self.user_has_groups('website.group_website_designer'):
            raise AccessDenied()
        super(ResConfigSettings, self).set_values()
        set_param = self.env['ir.config_parameter'].sudo().set_param
        set_param('auth_signup.allow_uninvited', repr(self.auth_signup_uninvited == 'b2c'))
        set_param('website.has_google_analytics', self.has_google_analytics)
        set_param('website.has_google_analytics_dashboard', self.has_google_analytics_dashboard)
        set_param('website.has_google_maps', self.has_google_maps)
        set_param('google_maps_api_key', (self.google_maps_api_key or '').strip())
    @api.multi
    def open_template_user(self):
        action = self.env.ref('base.action_res_users').read()[0]
        action['res_id'] = literal_eval(self.env['ir.config_parameter'].sudo().get_param('auth_signup.template_user_id', 'False'))
        action['views'] = [[self.env.ref('base.view_users_form').id, 'form']]
        return action