mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[16.0][IMP] base_global_discount: Add flag in product to bypass discount
This commit is contained in:
16
base_global_discount/models/product_product.py
Normal file
16
base_global_discount/models/product_product.py
Normal 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."
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user