changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user