Files
stock-logistics-warehouse/stock_measuring_device/models/stock_warehouse.py
Alexandre Fayolle 02ec5184d4 [ADD] stock_measuring_device
This is a rework of the stock_cubiscan module to allow supporting
different kind of measuring devices, with different communication
protocols. We use components from OCA/connector to abstract the
implementation of the backend (some devices are synchronous, others are
asynchronous...).

Others PR to come for stock_measuring_device_cubiscan and
stock_measuring_device_zippcube.
2021-09-09 17:49:37 +07:00

13 lines
326 B
Python

# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class StockWarehouse(models.Model):
_inherit = "stock.warehouse"
measuring_device_ids = fields.One2many(
"measuring.device", "warehouse_id", string="Measuring Devices"
)