2
This commit is contained in:
@@ -257,7 +257,7 @@ class FinancialFormController(http.Controller):
|
||||
})
|
||||
except Exception as e:
|
||||
_logger.error(f'加载财务表单失败: {str(e)}')
|
||||
return "表单加载失败,请稍后重试"
|
||||
return f"表单加载失败,请稍后重试: {str(e)}"
|
||||
|
||||
def _get_information_form_config(self, employee_id):
|
||||
# 数据格式
|
||||
@@ -449,7 +449,7 @@ class FinancialFormController(http.Controller):
|
||||
detail_list.append((0, 0, v))
|
||||
tar_data['summary_line'] = detail_list
|
||||
# 保存数据
|
||||
records = request.env['information.summary.table'].sudo()..create(tar_data)
|
||||
records = request.env['information.summary.table'].sudo().create(tar_data)
|
||||
|
||||
return {
|
||||
'success': True,
|
||||
|
||||
Reference in New Issue
Block a user