social/mail_parent_recipient/models/res_config.py

17 lines
484 B
Python
Raw Normal View History

2018-11-26 17:55:52 +01:00
# 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"
2018-11-26 17:55:52 +01:00
use_parent_mail_address = fields.Boolean(
config_parameter="mail.use_parent_address",
2018-11-26 17:55:52 +01:00
help="""
When checked, for partner without eamil the system will try
to use the email address of the partner's parent.
""",
2018-11-26 17:55:52 +01:00
)