From a48a24e5eaf1771c428e15d376755fe4c0ff00ac Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 10 Feb 2026 11:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_notice/controllers/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_notice/controllers/main.py b/yuthon_notice/controllers/main.py index 254efba9f..3d0debf6b 100644 --- a/yuthon_notice/controllers/main.py +++ b/yuthon_notice/controllers/main.py @@ -54,8 +54,9 @@ class YuthonNotice(http.Controller): @http.route('/yuthon/notice/list', methods=['POST'], type='http', auth='none', csrf=False) def yuthon_notice_list(self, **kwargs): _logger.info(f"-----/yuthon/notice/list---接口收到响应-----{kwargs}--") + user_id = request.env['res.users'].sudo().browse(kwargs.get('employee')) domain = [('is_company', '=', True), - ('users_ids', 'in', kwargs.get('user_id')), + ('users_ids', 'in', user_id), ('notice_state', '=', 'yes')] notice_ids = request.env['yuthon.notice'].sudo().search(domain) data_list = []