stock_no_negative/models/stock_location.py
2026-01-12 16:43:00 +07:00

15 lines
442 B
Python
Executable File

# Copyright 2018 ForgeFlow (https://www.forgeflow.com)
# @author Jordi Ballester <jordi.ballester@forgeflow.com.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockLocation(models.Model):
_inherit = "stock.location"
allow_negative_stock = fields.Boolean(
help="Allow negative stock levels for the stockable products "
"attached to this location.",
)