From b51f320dba0a132136bcf0c07d40e073f39911b1 Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Sun, 19 Jan 2025 19:41:37 +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_maintain/models/property_report_repair.py | 8 +++++++-
yuthon_maintain/views/property_report_repair.xml | 6 +++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/yuthon_maintain/models/property_report_repair.py b/yuthon_maintain/models/property_report_repair.py
index 7e6ebc77a..52b21a13c 100644
--- a/yuthon_maintain/models/property_report_repair.py
+++ b/yuthon_maintain/models/property_report_repair.py
@@ -54,5 +54,11 @@ class PropertyRentRelief(models.Model):
confirmation_repairer = fields.Char(string="报修人确认")
warehouse_management = fields.Char(string="库管")
total = fields.Float(string="总价")
-
remake = fields.Text(string="备注")
+
+ @api.onchange('users_id', 'fault')
+ def _onchange_users_id(self):
+ if self.users_id:
+ self.name = self.users_id.name
+ if self.users_id and self.fault:
+ self.name = self.users_id.name + self.fault
\ No newline at end of file
diff --git a/yuthon_maintain/views/property_report_repair.xml b/yuthon_maintain/views/property_report_repair.xml
index 433ab040d..e419fe5f7 100644
--- a/yuthon_maintain/views/property_report_repair.xml
+++ b/yuthon_maintain/views/property_report_repair.xml
@@ -26,15 +26,15 @@
+
+
+
-
-
-