This commit is contained in:
Admin
2025-12-29 20:40:16 +08:00
parent 7dcd783a7d
commit ef481b1c19
@@ -257,7 +257,7 @@ class FinancialFormController(http.Controller):
}) })
except Exception as e: except Exception as e:
_logger.error(f'加载财务表单失败: {str(e)}') _logger.error(f'加载财务表单失败: {str(e)}')
return "表单加载失败,请稍后重试" return f"表单加载失败,请稍后重试: {str(e)}"
def _get_information_form_config(self, employee_id): def _get_information_form_config(self, employee_id):
# 数据格式 # 数据格式
@@ -449,7 +449,7 @@ class FinancialFormController(http.Controller):
detail_list.append((0, 0, v)) detail_list.append((0, 0, v))
tar_data['summary_line'] = detail_list 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 { return {
'success': True, 'success': True,