!8853 公告手机端数据过滤

Merge pull request !8853 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-02-10 03:35:36 +00:00
committed by Gitee
+2 -1
View File
@@ -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 = []