[16.0][IMP] base_global_discount: Add flag in product to bypass discount

This commit is contained in:
ferran-S73
2024-05-20 17:03:54 +02:00
committed by miguel-S73
parent bbf343a968
commit 122a605672
5 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# Copyright 2024 Studio73 - Ferran Mora <ferran@studio73.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
bypass_global_discount = fields.Boolean(
string="Don't apply global discount",
help=(
"If this checkbox is ticked, it means that this product will not be taken "
"into account when calculating the global discounts."
),
)