# Copyright 2026 Criptomart # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields from odoo import models class ResCompany(models.Model): _inherit = "res.company" batch_summary_restriction_enabled = fields.Boolean( string="Enforce Product Summary Restriction", default=False, ) batch_summary_restriction_scope = fields.Selection( selection=[ ("processed", "Only processed products"), ("all", "All summary products"), ], string="Product Summary Restriction Scope", default="processed", required=True, ) batch_detailed_restriction_enabled = fields.Boolean( string="Enforce Detailed Operations Restriction", default=True, ) batch_detailed_restriction_scope = fields.Selection( selection=[ ("processed", "Only processed lines"), ("all", "All detailed lines"), ], string="Detailed Operations Restriction Scope", default="processed", required=True, )