# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) # Part of the Fusion Plating product family. # # Sub 7 — company-wide default for the IoT sensor polling interval. from odoo import fields, models class ResCompany(models.Model): _inherit = 'res.company' x_fc_default_poll_interval_minutes = fields.Integer( string='IoT default polling interval (minutes)', default=30, help='Applied to any fp.tank.sensor that does not set its own ' 'Polling Interval. Used by the ingest endpoint to drop ' 'readings that arrive inside the interval, keeping the ' 'database clean even when a Pi agent polls more often.', )