From 4ed49881e3f3c2c55a6d5c1dbb7eb4b060b53d6c Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Thu, 31 Jul 2025 22:05:40 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yuthon_salary/static/src/js/salary_create_button.js | 12 ++++++++++++
.../static/src/xml/salary_create_button.xml | 5 +++++
yuthon_salary/views/inherit_hr_payslip_views.xml | 3 ---
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/yuthon_salary/static/src/js/salary_create_button.js b/yuthon_salary/static/src/js/salary_create_button.js
index 916b4e441..f7946b05a 100644
--- a/yuthon_salary/static/src/js/salary_create_button.js
+++ b/yuthon_salary/static/src/js/salary_create_button.js
@@ -32,6 +32,18 @@ export class CustomSalaryStatementsController extends ListController {
context: {},
});
}
+ openPayrollWizard(){
+ this.actionService.doAction({
+ type: 'ir.actions.act_window',
+ res_model: 'temporary.payslip.wizard',
+ name: '工资项导入',
+ view_mode: 'form',
+ view_type: 'form',
+ views: [[false, 'form']],
+ target: 'new', // 以弹窗形式打开
+ context: {},
+ });
+ }
}
registry.category("views").add("custom_salary_button", {
diff --git a/yuthon_salary/static/src/xml/salary_create_button.xml b/yuthon_salary/static/src/xml/salary_create_button.xml
index 6e67904ec..b6ef3c069 100644
--- a/yuthon_salary/static/src/xml/salary_create_button.xml
+++ b/yuthon_salary/static/src/xml/salary_create_button.xml
@@ -11,5 +11,10 @@
社保导入
+
+
+
diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml
index ef2245e9d..122f42a76 100644
--- a/yuthon_salary/views/inherit_hr_payslip_views.xml
+++ b/yuthon_salary/views/inherit_hr_payslip_views.xml
@@ -427,7 +427,6 @@
@@ -501,7 +500,6 @@
@@ -558,7 +556,6 @@