Files
stock-logistics-warehouse/stock_inventory_discrepancy/models/stock_location.py
2021-09-09 15:33:01 +02:00

18 lines
557 B
Python

# Copyright 2017-2020 ForgeFlow S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class StockLocation(models.Model):
_inherit = "stock.location"
discrepancy_threshold = fields.Float(
string="Maximum Discrepancy Rate Threshold",
digits=(3, 2),
help="Maximum Discrepancy Rate allowed for any product when doing "
"an Inventory Adjustment. Thresholds defined in Locations have "
"preference over Warehouse's ones.",
)