Odoo Book < DELUXE >

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

In your main student record model, use the config_parameter to check if the feature is enabled before executing the notification logic. Odoo Book

: Creating card-based displays for models like "Company Employees" to improve visual management. from odoo import models, api class StudentRecord(models

from odoo import models, api class StudentRecord(models.Model): _name = 'student.record' @api.model def create(self, vals): res = super(StudentRecord, self).create(vals) # Check the system parameter is_enabled = self.env['ir.config_parameter'].sudo().get_param('education_organization.enable_student_notifications') if is_enabled: self.send_notification_email(res) return res Use code with caution. Copied to clipboard Other Common Features for Development Inheriting Odoo’s Features | Odoo 18 Studio Book

Add the field to the user interface by inheriting the settings form view in an XML file.

cybrosys.com/odoo/videos/technical/create-kanban-view-in-odoo-17">Kanban view or Chatter integration ? Inheriting Odoo’s Features | Odoo 18 Studio Book