添加功能
This commit is contained in:
@@ -156,8 +156,8 @@ class PropertyMeterWater(models.Model):
|
||||
('yuthon_property_id', '=', property.id)
|
||||
], limit=1)
|
||||
if not existing_meter:
|
||||
self.env['yuthon.property.energy'].create({
|
||||
'property_meter_archives_id': record.id,
|
||||
self.env['yuthon.property.watery'].create({
|
||||
'property_meter_water_id': record.id,
|
||||
'yuthon_property_id': property.id,
|
||||
})
|
||||
|
||||
|
||||
@@ -43,8 +43,6 @@ class ElectricWaterWizard(models.TransientModel):
|
||||
'gauge_magnification': meter.gauge_magnification,
|
||||
'last_reading_time': last_month_line.meter_date,
|
||||
'type': meter.type,
|
||||
'start_time': meter.start_time,
|
||||
'end_time': meter.end_time,
|
||||
'archives_state': meter.archives_state,
|
||||
'maximum_count': meter.maximum_count,
|
||||
})
|
||||
@@ -79,8 +77,6 @@ class ElectricWaterWizard(models.TransientModel):
|
||||
'gauge_magnification': water.gauge_magnification,
|
||||
'last_reading_time': last_month_line.meter_date,
|
||||
'type': water.type,
|
||||
'start_time': water.start_time,
|
||||
'end_time': water.end_time,
|
||||
'water_state': water.water_state,
|
||||
'maximum_count': water.maximum_count,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user