hunk.code_window:      */
       on_attach_callback: function () {
           this.renderer.on_attach_callback();
       },
       //--------------------------------------------------------------------------
       // Public
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     /**
        * Called when the control panel is remove form the DOM.
        */
       on_detach_callback: function () {
           this.renderer.on_detach_callback();
       },
  
hunk.file_path: addons/web/static/src/js/views/control_panel/control_panel_controller.js
hunk.type: add
file: # -*- coding: utf-8 -*-
  
  from odoo import fields, models
  
  
  class ResConfigSettings(models.TransientModel):
      _inherit = 'res.config.settings'
  
      hr_presence_control_login = fields.Boolean(string="According to the system login (User status on chat)", config_parameter='hr_presence.hr_presence_control_login')
      hr_presence_control_email = fields.Boolean(string="According to the amount of sent emails", config_parameter='hr_presence.hr_presence_control_email')
      hr_presence_control_ip = fields.Boolean(string="According to the IP address", config_parameter='hr_presence.hr_presence_control_ip')
      hr_presence_control_email_amount = fields.Integer(related="company_id.hr_presence_control_email_amount", readonly=False)
      hr_presence_control_ip_list = fields.Char(related="company_id.hr_presence_control_ip_list", readonly=False)
  