!5882 添加功能

Merge pull request !5882 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-10-22 10:06:23 +00:00
committed by Gitee
@@ -310,7 +310,7 @@ class MeterArchivesLine(models.Model):
i.last_meter = i.meter_date
i.current_meter = 0
@api.onchagne('current_read', 'last_read', 'maximum_count')
@api.onchange('current_read', 'last_read', 'maximum_count')
def onchange_current_meter(self):
for record in self:
if record.last_read is not None and record.current_read is not None and record.last_read > 0: