From b151d4402fc6b5f2bd8ae574eaad082391ecc8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Thu, 8 Jan 2026 11:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_holiday/__manifest__.py | 5 +- yuthon_holiday/report/__init__.py | 0 .../report/hr_leave_batch_report_action.xml | 17 ++ .../report/hr_leave_batch_report_template.xml | 153 ++++++++++++++++++ yuthon_holiday/views/hr_leave_batch.xml | 7 + yuthon_issue/models/issue_library.py | 2 +- yuthon_issue/views/issue_library_views.xml | 4 +- .../report/purchase_order_print_templates.xml | 45 +++--- .../report/seal_approval_templates.xml | 2 +- yuthon_work_brand/views/hr_menus.xml | 20 +-- 10 files changed, 221 insertions(+), 34 deletions(-) create mode 100644 yuthon_holiday/report/__init__.py create mode 100644 yuthon_holiday/report/hr_leave_batch_report_action.xml create mode 100644 yuthon_holiday/report/hr_leave_batch_report_template.xml diff --git a/yuthon_holiday/__manifest__.py b/yuthon_holiday/__manifest__.py index 082ef6c80..f1968c02a 100644 --- a/yuthon_holiday/__manifest__.py +++ b/yuthon_holiday/__manifest__.py @@ -9,17 +9,20 @@ 'security/ir.model.access.csv', 'security/yuthon_holiday_group.xml', 'data/yuthon_holiday_data.xml', + # 报表文件需先加载,供后续视图/按钮引用 + 'report/hr_leave_batch_report_template.xml', + 'report/hr_leave_batch_report_action.xml', 'views/inherit_hr_type_views.xml', 'views/inherit_hr_leave_allocation_views.xml', 'views/inherit_hr_leave_accrual_plan_views.xml', 'views/hr_leave_accrual_views.xml', 'views/yuthon_fixes_approval_views.xml', - 'views/hr_leave_batch.xml', 'views/yuthon_breastfeed_leave_views.xml', 'views/yuthon_holiday_setting_views.xml', 'wizard/yuthon_fixes_wizard_views.xml', 'wizard/leave_allocation_wizard_views.xml', 'wizard/yuthon_leave_wizard_views.xml', + 'views/hr_leave_batch.xml', ], 'assets': { 'web.assets_backend': [ diff --git a/yuthon_holiday/report/__init__.py b/yuthon_holiday/report/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/yuthon_holiday/report/hr_leave_batch_report_action.xml b/yuthon_holiday/report/hr_leave_batch_report_action.xml new file mode 100644 index 000000000..cf4c63371 --- /dev/null +++ b/yuthon_holiday/report/hr_leave_batch_report_action.xml @@ -0,0 +1,17 @@ + + + + + 请假单 + hr.leave.batch + qweb-pdf + + yuthon_holiday.hr_leave_batch_print + yuthon_holiday.hr_leave_batch_print + + + report + '请假单 - %s' % (object.name or '') + + + \ No newline at end of file diff --git a/yuthon_holiday/report/hr_leave_batch_report_template.xml b/yuthon_holiday/report/hr_leave_batch_report_template.xml new file mode 100644 index 000000000..952f5939d --- /dev/null +++ b/yuthon_holiday/report/hr_leave_batch_report_template.xml @@ -0,0 +1,153 @@ + + + + + + + \ No newline at end of file diff --git a/yuthon_holiday/views/hr_leave_batch.xml b/yuthon_holiday/views/hr_leave_batch.xml index 19b0d5e4a..785f57890 100644 --- a/yuthon_holiday/views/hr_leave_batch.xml +++ b/yuthon_holiday/views/hr_leave_batch.xml @@ -18,6 +18,13 @@ hr.leave.batch
+
+
diff --git a/yuthon_issue/models/issue_library.py b/yuthon_issue/models/issue_library.py index f7779c856..63ca47476 100644 --- a/yuthon_issue/models/issue_library.py +++ b/yuthon_issue/models/issue_library.py @@ -16,7 +16,7 @@ class IssueLibrary(models.Model): topic_content = fields.Text(string='事项背景') will_based = fields.Text(string='上会依据') deliberation_content = fields.Text(string='请示事项', default='建议同意') - handling_situation = fields.Text(string='办理情况') + handling_situation = fields.Text(string='办理情况(存在问题)') is_invisible_workflow = fields.Boolean(string="流程隐藏的判断") code = fields.Char(string='编号', required=True, copy=False, default=lambda self: self.env['ir.sequence'].next_by_code('issue_library_code')) diff --git a/yuthon_issue/views/issue_library_views.xml b/yuthon_issue/views/issue_library_views.xml index e01ffc0b8..6aff9437c 100644 --- a/yuthon_issue/views/issue_library_views.xml +++ b/yuthon_issue/views/issue_library_views.xml @@ -109,12 +109,12 @@ + + - - diff --git a/yuthon_purchase/report/purchase_order_print_templates.xml b/yuthon_purchase/report/purchase_order_print_templates.xml index 3951f2fba..0b14b4ad8 100644 --- a/yuthon_purchase/report/purchase_order_print_templates.xml +++ b/yuthon_purchase/report/purchase_order_print_templates.xml @@ -6,7 +6,8 @@
-
采购审批单
-
+ +
部门:
@@ -127,34 +137,31 @@ - + 审批详情 + - 节点名称 - 意见 - 审批人 - 操作时间 - 状态 - 附件 + 节点名称 + 意见 + 审批人 - 操作时间 + 状态 + 附件 + - - - + + + - - - 待办 - 办理中 - 已办结 - 结束 - - + +
diff --git a/yuthon_trade/report/seal_approval_templates.xml b/yuthon_trade/report/seal_approval_templates.xml index 65f5fe04b..a28a08fa4 100644 --- a/yuthon_trade/report/seal_approval_templates.xml +++ b/yuthon_trade/report/seal_approval_templates.xml @@ -106,7 +106,7 @@ - - + diff --git a/yuthon_work_brand/views/hr_menus.xml b/yuthon_work_brand/views/hr_menus.xml index 594172ad3..9a81f19e7 100644 --- a/yuthon_work_brand/views/hr_menus.xml +++ b/yuthon_work_brand/views/hr_menus.xml @@ -787,16 +787,16 @@ parent="holiday_manage_menu_root_board" sequence="20" action="yuthon_salary.action_view_my_payslip"/> - - + + + + + + + + + +