diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 4197959b3..c4d59e362 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -652,12 +652,8 @@ class PropertyLeaseContract(models.Model): contract_ids = self.env["property.lease.contract"].browse( self._context.get('active_ids', self._context.get('active_id'))) for rec in contract_ids: - if rec.electricity_fee_ids: - for line in rec.electricity_fee_ids: - line.is_fix_loss = 'no' - if rec.water_fee_ids: - for line in rec.water_fee_ids: - line.is_fix_loss = 'no' + if rec.lessor_line: + rec.write({'lessor_line': [(5,)]}) def update_admin_id(self): contract_ids = self.env["property.lease.contract"].browse(