social/mail_parent_recipient/models/res_config.py
Thierry Ducrest 2a3e8daaae Migrate mail_parent_recipient to 15.0
This module comes from a PR in v10 but has never been merged.
This is the related PR:

* https://github.com/OCA/social/pull/963
2022-11-08 11:17:52 +01:00

17 lines
484 B
Python

# Copyright 2022 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
use_parent_mail_address = fields.Boolean(
config_parameter="mail.use_parent_address",
help="""
When checked, for partner without eamil the system will try
to use the email address of the partner's parent.
""",
)