mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 16:51:58 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
# 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"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue