# Copyright 2022 Criptomart
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class Company(models.Model):
    _inherit = 'res.company'

    use_parent_categories_to_determine_public_cat = fields.Boolean(
        string="Use parent categories to determine the ecommerce category",
        help="Use parent categories if the category has no set up the public category.",
    )
