Files
stock-logistics-warehouse/stock_location_lockdown/models/stock_location.py
Alexis de Lattre f1ae654e42 [MIG] stock_location_lockdown from v9 to v10
Improve README
2020-12-17 15:13:40 +01:00

15 lines
437 B
Python

# -*- coding: utf-8 -*-
# Copyright 2018 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockLocation(models.Model):
_inherit = 'stock.location'
block_stock_entrance = fields.Boolean(
help="if this box is checked, putting stock on this location won't be "
"allowed. Usually used for a virtual location that has "
"childrens.")