mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
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.
13 lines
326 B
Python
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"
|
|
)
|