mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
Now we can configure if an automatic notification should be sent when we receive the goods from an RMA in our warehouse If we've got `rma_sale` or `website_rma` we can also configure draft notifications so when the customer places an RMA from the portal the receive an acknowledge email. TT29595
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
# Copyright 2021 Tecnativa - David Vidal
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = "res.config.settings"
|
|
|
|
send_rma_confirmation = fields.Boolean(
|
|
related="company_id.send_rma_confirmation",
|
|
readonly=False,
|
|
)
|
|
rma_mail_confirmation_template_id = fields.Many2one(
|
|
related="company_id.rma_mail_confirmation_template_id",
|
|
readonly=False,
|
|
)
|
|
send_rma_receipt_confirmation = fields.Boolean(
|
|
related="company_id.send_rma_receipt_confirmation",
|
|
readonly=False,
|
|
)
|
|
rma_mail_receipt_confirmation_template_id = fields.Many2one(
|
|
related="company_id.rma_mail_receipt_confirmation_template_id",
|
|
readonly=False,
|
|
)
|
|
send_rma_draft_confirmation = fields.Boolean(
|
|
related="company_id.send_rma_draft_confirmation",
|
|
readonly=False,
|
|
)
|
|
rma_mail_draft_confirmation_template_id = fields.Many2one(
|
|
related="company_id.rma_mail_draft_confirmation_template_id",
|
|
readonly=False,
|
|
)
|