Book: Odoo
from odoo import models, fields class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' enable_student_notifications = fields.Boolean( string="Enable Student Creation Emails", config_parameter='education_organization.enable_student_notifications' ) Use code with caution. Copied to clipboard
Add the field to the user interface by inheriting the settings form view in an XML file. Odoo Book
: Extending the name_search() function to allow finding records by fields other than name, such as a mobile number. Below is an example of developing a ,
Below is an example of developing a , which allows users to toggle specific functionalities on or off within a custom module. Feature: Custom Configuration Toggle This feature adds a specific checkbox to the
Create a new Python file to inherit the res.config.settings model. This model is transient and requires special functions to save and retrieve data.
This feature adds a specific checkbox to the Odoo settings menu, allowing administrators to enable or disable a custom "Student Notification" service.
