mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
Sometimes there's no choice to return, refund or replace an RMA for different reasons. For example, when the customer doesn't want to repair the product because that would be too expensive. We still want finish the RMA and document the reasons. This improvement allows it. TT34164
32 lines
1.3 KiB
Python
32 lines
1.3 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"
|
|
|
|
group_rma_manual_finalization = fields.Boolean(
|
|
string="Finish RMA manually choosing a reason",
|
|
help="Allow to finish an RMA without returning back a product or refunding",
|
|
implied_group="rma.group_rma_manual_finalization",
|
|
)
|
|
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,
|
|
)
|