From b5d13735e70e6fda8068ea046615e790ef5cd8bb Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Tue, 1 Jul 2025 09:42:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yuthon_property/models/property_accounts_receivable.py | 4 ++--
.../views/property_accounts_receivable_views.xml | 8 ++++----
yuthon_property/wizard/property_tenant_wizard.py | 6 ++----
.../wizard/click_reconciliation_wizard.py | 1 +
.../wizard/property_reconciliation_wizard.py | 1 +
.../wizard/property_reconciliation_wizard_views.xml | 2 +-
6 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/yuthon_property/models/property_accounts_receivable.py b/yuthon_property/models/property_accounts_receivable.py
index 1c72611cc..949b6e8ef 100644
--- a/yuthon_property/models/property_accounts_receivable.py
+++ b/yuthon_property/models/property_accounts_receivable.py
@@ -19,6 +19,7 @@ class PropertyAccountsReceivable(models.Model):
invoicing_type = fields.Selection([('spot', '专票'), ('cape', '普票')], related='lessee_id.invoicing_type',
string="开票类型")
due_date = fields.Date(string='应收日期')
+ reconciliation_time = fields.Datetime('对账时间')
year = fields.Selection(selection=[(str(i), str(i)) for i in range(2024, 2060)], string='所属年', )
month = fields.Selection([('1', '一月'), ('2', '二月'), ('3', '三月'), ('4', '四月'),
('5', '五月'), ('6', '六月'), ('7', '七月'), ('8', '八月'),
@@ -29,9 +30,8 @@ class PropertyAccountsReceivable(models.Model):
multiplier = fields.Integer(string='季度')
remark = fields.Text(string='备注')
red_date = fields.Date(string='红冲日期')
- charge_status = fields.Selection([('unpaid', '未收'), ('fully_paid', '已收')], string='收费状态')
is_suspend = fields.Boolean(string='是否挂起')
- create_time = fields.Date(string='创建日期', default=lambda self: fields.Date.today())
+ create_time = fields.Datetime(string='创建时间', default=fields.Datetime.now)
is_billing = fields.Boolean(string='开票')
is_reconciliation = fields.Boolean(string='对账')
difference_amount = fields.Float(string='差额')
diff --git a/yuthon_property/views/property_accounts_receivable_views.xml b/yuthon_property/views/property_accounts_receivable_views.xml
index 8adf9b570..dcb2aa463 100644
--- a/yuthon_property/views/property_accounts_receivable_views.xml
+++ b/yuthon_property/views/property_accounts_receivable_views.xml
@@ -3,9 +3,9 @@
property.accounts.receivable.tree
property.accounts.receivable
-
+
@@ -19,9 +19,9 @@
-
+
diff --git a/yuthon_property/wizard/property_tenant_wizard.py b/yuthon_property/wizard/property_tenant_wizard.py
index d973c7dac..5815292d8 100644
--- a/yuthon_property/wizard/property_tenant_wizard.py
+++ b/yuthon_property/wizard/property_tenant_wizard.py
@@ -61,12 +61,10 @@ class PropertyTenantWizard(models.Model):
tenant_id.write(tenant_data)
def update_account(self, row):
- account_id = self.env['property.tenant.information'].search([('name', '=', row[2].value)])
+ account_id = self.env['property.tenant.information'].search([('name', '=', row[0].value)])
if account_id:
account_id.bank_ids = [(0, 0, {
'tenant_id':account_id.id,
- 'user':row[2].value,
- 'name': row[3].value,
- 'bank': row[4].value,
+ 'bank': row[1].value,
})]
diff --git a/yuthon_property_approval/wizard/click_reconciliation_wizard.py b/yuthon_property_approval/wizard/click_reconciliation_wizard.py
index 3368fe67e..6b78f4cb3 100644
--- a/yuthon_property_approval/wizard/click_reconciliation_wizard.py
+++ b/yuthon_property_approval/wizard/click_reconciliation_wizard.py
@@ -78,6 +78,7 @@ class ClickReconciliationWizard(models.Model):
receivable.write({
'is_reconciliation': True,
'delivered1': amount,
+ 'reconciliation_time': fields.Datetime.now(),
'payout_date': record.start_time.date(),
'remark': line_data.get('remark', ''), # 使用line_data中的备注
'receivable_log': f'当前登录人{record.env.user.name}于{fields.Datetime.now()}对户名为{record.name_account}进行对账操作'
diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py
index 125f379ef..94a96f5b3 100644
--- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py
+++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py
@@ -128,6 +128,7 @@ class PropertyReconciliationWizard(models.Model):
'delivered1': line.amount,
'payout_date': rec.bank_id.start_time.date(),
'remark': line.remake,
+ '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}'
})
diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard_views.xml b/yuthon_property_approval/wizard/property_reconciliation_wizard_views.xml
index 32ba7ce29..3b29ab11e 100644
--- a/yuthon_property_approval/wizard/property_reconciliation_wizard_views.xml
+++ b/yuthon_property_approval/wizard/property_reconciliation_wizard_views.xml
@@ -26,7 +26,7 @@
-
+