mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
18 lines
614 B
Python
18 lines
614 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 Eficent Business and IT Consulting Services 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.")
|