diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 2e8c6ba0f..4055a3f32 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -141,10 +141,16 @@ class PropertyReconciliationWizard(models.Model): 'reconciliation_time': fields.Datetime.now(), 'receivable_log': f'当前登录人{rec.env.user.name}于{fields.Datetime.now()}对户名为{rec.bank_id.name_account}进行对账操作,对账应收金额为{rec.receivable_total},实际金额为{rec.actual_total}' }) + management_type_id = self.env['property.management.type'].search([('name', '=', '违约金')]) if line.collection_type == 'penalty': self.env['property.accounts.receivable'].create({ 'is_reconciliation': True, - 'delivered1': line.rent, + 'due_date': line.due_date, + 'management_type_id': management_type_id.id, + 'lessee_id': first_line.tenant_id.id, + 'property_id': line.property_id.id, + 'contract_id': line.contract_id.id, + 'submitted': line.rent, 'payout_date': rec.bank_id.start_time.date(), 'remark': line.remake, 'reconciliation_time': fields.Datetime.now(),