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
|
|
|
|
|
|
|
|
|
2022-11-07 09:27:21 +01:00
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
|
|
_inherit = "res.config.settings"
|
2018-11-26 17:55:52 +01:00
|
|
|
|
|
|
|
use_parent_mail_address = fields.Boolean(
|
2022-11-07 09:27:21 +01:00
|
|
|
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.
|
2022-11-07 09:27:21 +01:00
|
|
|
""",
|
2018-11-26 17:55:52 +01:00
|
|
|
)
|