from odoo import fields, models


class ResConfigSettings(models.TransientModel):
    _inherit = "res.config.settings"

    update_supplierinfo_discount1 = fields.Boolean(
        string="Update Supplierinfo Discount 1",
        config_parameter=(
            "purchase_order_supplierinfo_update_triple_discount"
            ".update_supplierinfo_discount1"
        ),
        help="If enabled, confirming a purchase order will update discount1.",
    )

    update_supplierinfo_discount2 = fields.Boolean(
        string="Update Supplierinfo Discount 2",
        config_parameter=(
            "purchase_order_supplierinfo_update_triple_discount"
            ".update_supplierinfo_discount2"
        ),
        help="If enabled, confirming a purchase order will update discount2.",
    )

    update_supplierinfo_discount3 = fields.Boolean(
        string="Update Supplierinfo Discount 3",
        config_parameter=(
            "purchase_order_supplierinfo_update_triple_discount"
            ".update_supplierinfo_discount3"
        ),
        help="If enabled, confirming a purchase order will update discount3.",
    )
