From 4e977539cf1ac71332fd8e7579e7bce056b74bd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?=
<9664676+pengyuthon@user.noreply.gitee.com>
Date: Thu, 25 Dec 2025 16:52:07 +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
---
room/security/ir_rule.xml | 5 +++++
yuthon_maintain/models/property_device_repair.py | 2 +-
yuthon_maintain/views/property_device_repair_views.xml | 5 +++++
yuthon_work_brand/views/hr_menus.xml | 7 ++++++-
4 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/room/security/ir_rule.xml b/room/security/ir_rule.xml
index c20ade81a..7b2e0524c 100644
--- a/room/security/ir_rule.xml
+++ b/room/security/ir_rule.xml
@@ -11,6 +11,11 @@
[('company_id', 'in', company_ids)]
+
+ 预定会议多公司
+
+ [('company_id', 'in', company_ids)]
+
diff --git a/yuthon_maintain/models/property_device_repair.py b/yuthon_maintain/models/property_device_repair.py
index dbe632474..ec69bbb97 100644
--- a/yuthon_maintain/models/property_device_repair.py
+++ b/yuthon_maintain/models/property_device_repair.py
@@ -52,7 +52,7 @@ class PropertyDeviceRelief(models.Model):
}
def get_no_read_count(self):
- return self.search_count([('report_state', '=', 'to')])
+ return self.search_count([('report_state', '=', 'to'), ('users_id', '=', self.env.user.id)])
def pull_order(self):
soong_workflow_line_list = []
diff --git a/yuthon_maintain/views/property_device_repair_views.xml b/yuthon_maintain/views/property_device_repair_views.xml
index 0f73b7abf..43d3dc357 100644
--- a/yuthon_maintain/views/property_device_repair_views.xml
+++ b/yuthon_maintain/views/property_device_repair_views.xml
@@ -66,4 +66,9 @@
[('users_id', '=', uid)]
tree,form
+
+ 报事报修(管理员)
+ property.device.repair
+ tree,form
+
\ No newline at end of file
diff --git a/yuthon_work_brand/views/hr_menus.xml b/yuthon_work_brand/views/hr_menus.xml
index c66d1115a..20c902fa2 100644
--- a/yuthon_work_brand/views/hr_menus.xml
+++ b/yuthon_work_brand/views/hr_menus.xml
@@ -707,7 +707,12 @@
name="报事报修"
action="yuthon_maintain.property_device_repair_action"
sequence="5"/>
-
+