From 9394c5fb79d63924e3961f4134fa6e7bda1eff4b Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 27 Jan 2026 10:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/controllers/salary_phone.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yuthon_salary/controllers/salary_phone.py b/yuthon_salary/controllers/salary_phone.py index 275ca0202..0206bc6fa 100644 --- a/yuthon_salary/controllers/salary_phone.py +++ b/yuthon_salary/controllers/salary_phone.py @@ -79,11 +79,13 @@ class YuthonWillTask(http.Controller): data[year]['total'] += record.actual_paid_salary return json.dumps({'data': data, 'code': 200, 'message': ''}) + + @http.route('/phone/salary/self/detail', type='http', auth="none", csrf=False, cors='*') def phone_salary_self_detail(self, **kw): record = request.env['yuthon.salary.active'].sudo().search([('id', '=', int(kw.get('id')))]) data = {} - other_fields_list = ['ID', '员工', '公司', '部门', '司龄', '入职日期', '状态', 'Display Name', 'Created by', 'Created on', 'Last Updated by', 'Last Updated on'] + other_fields_list = ['累计子女教育', '累计赡养老人', '累计住房贷款利息', '累计住房租金', '累计继续教育', '累计3岁以下婴幼儿照护', '累计应纳税所得额', 'ID', '员工', '公司', '部门', '司龄', '入职日期', '状态', 'Display Name', 'Created by', 'Created on', 'Last Updated by', 'Last Updated on'] if record: # 找出所有字段的string和value fields_info = record.fields_get()