diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 3d65ba6c1..02fc29788 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -450,6 +450,18 @@ class PropertyReconciliationWizard(models.Model): if (round(line.rent or 0, 2) == 0 and line.collection_type != 'penalty') or \ (line.contract_id and line.contract_id.is_contract): continue + # if round(line.amount or 0, 2) != round(line.rent or 0, 2): + # if not line.remake: + # raise UserError(_( + # "错误:合同 '%s' 的对账明细行金额与租金不符,备注信息为必填项,请填写备注后再试。" + # ) % line.contract_id.name) + # line_date = fields.Date.from_string(line.due_date) + # rec_date = fields.Date.from_string(rec.actual_date) + # if (line_date.year, line_date.month) != (rec_date.year, rec_date.month): + # if not line.remake: + # raise UserError(_( + # "错误:合同 '%s' 的对账明细行月份与对账月份不符,备注信息为必填项,请填写备注后再试。" + # ) % line.contract_id.name) first_day = line.due_date.replace(day=1) last_day = (first_day + relativedelta(months=1)) - relativedelta(days=1) domain = [