diff --git a/yuthon_account_report/controllers/controllers.py b/yuthon_account_report/controllers/controllers.py index 91b5260e0..aed2d7523 100644 --- a/yuthon_account_report/controllers/controllers.py +++ b/yuthon_account_report/controllers/controllers.py @@ -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,