!5784 添加功能

Merge pull request !5784 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-10-18 07:56:00 +00:00
committed by Gitee
2 changed files with 5 additions and 4 deletions
@@ -190,7 +190,7 @@ class MeterWaterLine(models.Model):
string="上次用量", store=True, group_operator=None, compute="_compute_last"
)
last_read = fields.Float(
string="上次读数", store=True, group_operator=None, compute="_compute_last"
string="上次读数", group_operator=None, compute="_compute_last"
)
meter_date = fields.Date(string="任务日期")
@@ -287,7 +287,7 @@ class MeterWaterLine(models.Model):
i.current_meter = 0
else:
i.last_read = i.initial_value
i.last_read = 0
i.last_dosage = 0
i.last_meter = i.meter_date
i.current_meter = 0
@@ -101,14 +101,15 @@
<field name="water_id" string="水表名"/>
<field name="unit_number"/>
<field name="gauge_magnification"/>
<field name="initial_value" column_invisible="1"/>
<field name="last_read" readonly="1"/>
<field name="current_read"/>
<field name="current_meter" readonly="1"/>
<field name="unit"/>
<field name="receivables"/>
<field name="number" column_invisible="1"/>
<field name="yuthon_property_ids" string="地址" readonly="1" widget="many2many_tags" options="{'no_create': True, 'no_open': True}"/>
<field name="lessee_id" options="{'no_create': True, 'no_open': True}" readonly="1"/>
<field name="yuthon_property_ids" string="地址" widget="many2many_tags" options="{'no_create': True, 'no_open': True}"/>
<field name="lessee_id" options="{'no_create': True, 'no_open': True}"/>
<field name="epitope_values_id" domain="[('type', '=', 'watermeter')]" options="{'no_create': True, 'no_open': True}"/>
<field name="last_meter" readonly="1"/>
<field name="last_dosage" readonly="1"/>