添加功能

This commit is contained in:
李鹏宇
2025-11-24 16:39:22 +08:00
parent bcd6e74187
commit 9658c575a2
@@ -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 = [