This commit is contained in:
gsinghpal
2026-04-28 19:39:37 -04:00
parent 2d42b33d68
commit 13e300d90e
103 changed files with 4959 additions and 331 deletions

View File

@@ -62,7 +62,7 @@ class FpTankReading(models.Model):
'per-company without re-migrating history).',
)
unit = fields.Char(
string='Unit (raw)', related='parameter_id.uom', store=True,
string='Unit (raw)', related='parameter_id.uom_display', store=True,
)
# ------------------------------------------------------------------
@@ -93,7 +93,7 @@ class FpTankReading(models.Model):
r.display_unit = '°F'
else:
r.display_value = r.value
r.display_unit = r.parameter_id.uom or ''
r.display_unit = r.parameter_id.uom_display or ''
# ------------------------------------------------------------------
# Deviation from setpoint — signed Δ from the sensor's effective target