添加功能

This commit is contained in:
zhou
2025-08-23 15:13:29 +08:00
parent ab53e6b4e7
commit ba0e26f758
3 changed files with 2 additions and 4 deletions
@@ -342,7 +342,6 @@ class PropertyReconciliationWizard(models.Model):
is_reconciliation = line.amount == round(line.rent, 2)
if not existing_record:
_logger.info(f"为找到对应的应收日期{existing_record.due_date}{existing_record.property_id.name}的记录,创建新记录")
domain2 = [
('due_date', '=', line.due_date),
('property_id', '=', line.property_id.id),
@@ -376,7 +375,6 @@ class PropertyReconciliationWizard(models.Model):
'is_write': True if line.amount != 0 else None,
'reconciliation_time': fields.Datetime.now(),
})
_logger.info(f"已更新记录 - 物业: {line.property_id.name if line.property_id else '未知'}, 应收日期: {existing_record.due_date}")
# 计算已对账和未对账金额
rec.amount_been_reconciled += line.amount
@@ -34,7 +34,7 @@
<field name="due_date" readonly="1" force_save="1"/>
<field name="rent_month" sum = "Total" readonly="1" force_save="1"/>
<field name="rent" sum = "Total" readonly="1" force_save="1"/>
<field name="collection_type" readonly="1"/>
<field name="collection_type" readonly="1" force_save="1"/>
<field name="amount" sum = "Total" force_save="1"/>
<field name="remake"/>
</tree>
@@ -48,7 +48,7 @@
<field name="start_date"/>
<field name="user_id" string="申请人" required="1"/>
<field name="purchase_type" required="1" widget="radio" />
<field name="partner_id" domain="[('company_id', '=', company_id), ('user_ids', '=', False)]" required="1"/>
<field name="partner_id" domain="[('user_ids', '=', False)]" required="1"/>
<field name="pay_way" required="1"/>
</group>
<group>