addons-cm/website_partner_directory/models/res_partner.py

10 lines
256 B
Python

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.",
)