diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py index c38d461b1..32fb8160c 100644 --- a/yuthon_property/models/yuthon_property.py +++ b/yuthon_property/models/yuthon_property.py @@ -99,7 +99,7 @@ class YuthonPropertyWater(models.Model): location = fields.Char(string="位置") yuthon_property_id = fields.Many2one('yuthon.property', string="物业管理") - @api.onchange('water_meter_ids') + @api.onchange('property_meter_water_id') def _onchange_water_meter_ids(self): for rec in self: rec.property_meter_water_id.write({'yuthon_property_id': rec.property_meter_water_id.id})