From 54354da66c48c3a43ebe193e4a65793c6d657be0 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 29 Jul 2025 15:38:31 +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/inherit_maintenance_equipment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_maintain/models/inherit_maintenance_equipment.py b/yuthon_maintain/models/inherit_maintenance_equipment.py index 9a7508a37..bce50d8d7 100644 --- a/yuthon_maintain/models/inherit_maintenance_equipment.py +++ b/yuthon_maintain/models/inherit_maintenance_equipment.py @@ -32,7 +32,7 @@ class InheritMaintenanceEquipment(models.Model): h5_url = fields.Char(string="二维码扫码地址", compute='_compute_h5_url') h5_url_qrcode = fields.Image(string="二维码", compute='_compute_h5_url') company = fields.Selection([('jtbb', '天河投资'), ('ttcj', '天投城建')], string="公司") - department_id1 = fields.Many2one('hr.department', string="部门") + department_id1 = fields.Many2one('hr.department', string="部门", related='employee_id.department_id') is_jtbb = fields.Boolean(compute='_compute_company_id') mainten_state = fields.Selection([('ing', '使用中'), ('finish', '暂停')], string="设备状态") equipment_number = fields.Char(string="数量")