oca-ocb-hw/odoo-bringout-oca-iot-iot_oca/iot_oca/models/iot_communication_system.py
Ernad Husremovic b1d16a46bf Move 7 IoT modules to oca-ocb-hw and 9 product modules to oca-product
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:53:33 +02:00

15 lines
604 B
Python

# Copyright (C) 2018 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class IoTCommunicationSystem(models.Model):
_name = "iot.communication.system"
_description = "IoT Communication System"
# TODO: Rename it to iot.communication.system System is confusing
name = fields.Char(required=True)
device_ids = fields.One2many("iot.device", inverse_name="communication_system_id")
communication_system_action_ids = fields.One2many(
"iot.communication.system.action", inverse_name="communication_system_id"
)