How to Add Custom Fields to Configuration Settings in Odoo 19

May 7, 2026 by
How to Add Custom Fields to Configuration Settings in Odoo 19
Mevin Varghese


                                                                                                                 



How to Add Custom Fields to Configuration Settings in Odoo 19
Introduction
Configuration settings are one of the most important parts of any Odoo module. They allow administrators to control the behavior of a module from a single place without changing any code.
By default, Odoo provides a wide range of settings in the General Settings page. But in many real-world scenarios, you need to add your own custom settings specific to your module's behavior. This is where inheriting res.config.settings comes in handy.
This blog demonstrates how to add a custom field to the Configuration Settings page in Odoo 19. We'll use a custom module as our example, since it gives us full control to define the field and settings behavior from scratch.
The module demonstrates how to add custom fields to Configuration Settings in Odoo 19. It includes:
  • A custom module that inherits res.config.settings
  • A Boolean field called "Enable Custom Feature" added to General Settings
  • A settings view that displays the custom field inside the existing Settings page
  • No separate model needed — just a clean inheritance of res.config.settings
In Odoo, custom fields can be added to the Settings page by inheriting the res.config.settings model. Fields added here are automatically saved and loaded by Odoo's settings mechanism:
   
1. Create the Model
      Create a new Python file inside your module:
       models/res_config_settings.py
This model inherits res.config.settings, Odoo's built-in settings model. A Boolean field named enable_custom_feature is defined using a config_parameter key, which allows Odoo to automatically save and retrieve the value from the system parameters table. The value is not stored in res.config.settings because it is a TransientModel. Instead, it is stored in ir.config_parameter using the config_parameter key, ensuring that the value persists even after restarting Odoo.


 2. Create the Settings View 
      Inherit the existing General Settings view to add your custom field inside it.
      views/res_config_settings_views.xml
     
    
 3.  Access Rights
      Odoo handles most access for res.config.settings, but an access file restricts
      changes to authorized users.
      security/ir.model.access.csv
     Output
      After installing the module, navigate to Settings → General Settings. The custom field       
      appears as a toggle switch inside the Settings page.
      

  • The "Enable Custom Feature" toggle is visible inside General Settings
  • Turning it ON and clicking Save stores the value in Odoo’s system parameters (ir.config_parameter), and the value persists even after refreshing or restarting Odoo.
  • Developers can retrieve the value in code using the get_param() method.


Conclusion
Adding custom fields to Configuration Settings in Odoo 19 is a clean and professional way to make your module configurable — without hardcoding any values. By inheriting res.config.settings, you can add any type of field — Boolean, Char, Selection — and Odoo handles saving and loading automatically.
By using this approach, administrators can control module behavior directly from the Settings page, reducing the need for code changes and making your module more flexible and user-friendly.

If you are looking for an ERP implementation partner with diverse industry experience feel free to contact us. We have proven track record of successful implementations across various sectors including Odoo for Manufacturing, Odoo for Trading, Odoo for FMCG, Odoo for Oil & Gas, Odoo for Diary, Odoo for Pharma, Odoo for Cosmetic Clinic, Odoo for Contracting Companies, Odoo for HVAC, Odoo for Logistics, Odoo for Automobile, Odoo for Laundry, Odoo for Field Service, Odoo for E-Commerce & 
many more
ZestyBeanz offers Developer / Consultant outsourcing programs, Chat with us in Whatsapp and Hire Odoo Developers, Mobile Application Developers, Consultants.
#OdooDevelopment #Odoo18 #CustomChatterButton #TechnicalBlog #OdooCustomization #OdooTips #Odoofeatures