from odoo import models, fields class ResPartner(models.Model): _inherit = "res.partner" show_in_directory = fields.Boolean( string="Show in directory", help="If checked, this contact will appear in the public directory.", )