@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user